ivi-shell: remove some unnecessary checks

Both functions are callbacks that are added when the ivi_shell_surface is
created and removed when it is destroyed, so get_ivi_shell_surface() will never
return NULL here.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
Michael Olbrich 2023-02-07 10:23:03 +01:00
parent 2c96bdbdbf
commit f7609553a9
1 changed files with 0 additions and 7 deletions

View File

@ -121,10 +121,6 @@ ivi_shell_surface_committed(struct weston_surface *surface,
{
struct ivi_shell_surface *ivisurf = get_ivi_shell_surface(surface);
assert(ivisurf);
if (!ivisurf)
return;
if (surface->width == 0 || surface->height == 0)
return;
@ -145,9 +141,6 @@ ivi_shell_surface_get_label(struct weston_surface *surface,
{
struct ivi_shell_surface *shell_surf = get_ivi_shell_surface(surface);
if (!shell_surf)
return snprintf(buf, len, "unidentified window in ivi-shell");
return snprintf(buf, len, "ivi-surface %#x", shell_surf->id_surface);
}