From 3526f2081bc9fb8b2ca9c693215a73a0afd2f717 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 5 Oct 2014 11:15:02 +0200 Subject: [PATCH] x11: Remove unneeded and wrong return_if_fail() It triggers coverity warnings. --- gdk/x11/gdkwindow-x11.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index fd1ea5d047..e18f1d04c0 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;