[gtk+/gtk-3-16] testgtk: Remove pointless code



commit 074fd13350a35b7fe68705b0eb3d73686b6ef763
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 17 19:54:09 2015 -0400

    testgtk: Remove pointless code
    
    The display is getting overwritten immediately. Pointed out by
    coverity.

 tests/testgtk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 8aa6dcd..e60b31a 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -5516,7 +5516,7 @@ static void
 screen_display_check (GtkWidget *widget, ScreenDisplaySelection *data)
 {
   const gchar *display_name;
-  GdkDisplay *display = gtk_widget_get_display (widget);
+  GdkDisplay *display;
   GtkWidget *dialog;
   GdkScreen *new_screen = NULL;
   GdkScreen *current_screen = gtk_widget_get_screen (widget);


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