testgtk: Remove pointless code

The display is getting overwritten immediately. Pointed out by
coverity.
This commit is contained in:
Matthias Clasen 2015-07-17 19:54:09 -04:00
parent d8a40c4587
commit ccfacb383c

View File

@ -5630,7 +5630,7 @@ static void
screen_display_check (GtkWidget *widget, ScreenDisplaySelection *data) screen_display_check (GtkWidget *widget, ScreenDisplaySelection *data)
{ {
const gchar *display_name; const gchar *display_name;
GdkDisplay *display = gtk_widget_get_display (widget); GdkDisplay *display;
GtkWidget *dialog; GtkWidget *dialog;
GdkScreen *new_screen = NULL; GdkScreen *new_screen = NULL;
GdkScreen *current_screen = gtk_widget_get_screen (widget); GdkScreen *current_screen = gtk_widget_get_screen (widget);