wayland: Remove a useless else-if

We already check for impl->surface as the first branch we do.
This commit is contained in:
Jasper St. Pierre
2013-09-16 18:38:48 -04:00
parent 224822c831
commit 301d4ee681

View File

@ -1106,7 +1106,7 @@ gdk_wayland_window_hide_surface (GdkWindow *window,
wl_surface_attach (impl->surface, NULL, 0, 0);
wl_surface_commit (impl->surface);
}
else if (impl->surface)
else
{
if (impl->gtk_surface)
gtk_surface_destroy (impl->gtk_surface);