[gtk+] x11: Remove unneeded and wrong return_if_fail()



commit 3526f2081bc9fb8b2ca9c693215a73a0afd2f717
Author: Benjamin Otte <otte redhat com>
Date:   Sun Oct 5 11:15:02 2014 +0200

    x11: Remove unneeded and wrong return_if_fail()
    
    It triggers coverity warnings.

 gdk/x11/gdkwindow-x11.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index fd1ea5d..e18f1d0 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -3278,8 +3278,6 @@ gdk_window_x11_get_device_state (GdkWindow       *window,
 {
   GdkWindow *child;
 
-  g_return_val_if_fail (window == NULL || GDK_IS_WINDOW (window), FALSE);
-
   if (GDK_WINDOW_DESTROYED (window))
     return FALSE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]