[gtk+] wayland: Remove a useless else-if
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Remove a useless else-if
- Date: Tue, 29 Oct 2013 21:12:46 +0000 (UTC)
commit 301d4ee681787f5d9a1ce860fbca3476d58fc0fa
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Sep 16 18:38:48 2013 -0400
wayland: Remove a useless else-if
We already check for impl->surface as the first branch we do.
gdk/wayland/gdkwindow-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 26afb1f..9551670 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]