From 70de38219709e4fc47c2264cf21c648e240ce6f1 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 6 Dec 2015 20:20:27 -0800 Subject: [PATCH] remove unused global variable (cherry picked from commit 84a77c0c329fbcc7a68068ae0a2293098255a8b6) --- src/gtk/toplevel.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 413e2b454b..7530b0f3db 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -69,7 +69,6 @@ int wxOpenModalDialogsCount = 0; // the frame that is currently active (i.e. its child has focus). It is // used to generate wxActivateEvents static wxTopLevelWindowGTK *g_activeFrame = NULL; -static wxTopLevelWindowGTK *g_lastActiveFrame = NULL; extern wxCursor g_globalCursor; extern wxCursor g_busyCursor; @@ -141,9 +140,6 @@ static gboolean gtk_frame_focus_in_callback( GtkWidget *widget, wxTopLevelWindowGTK *win ) { g_activeFrame = win; - g_lastActiveFrame = g_activeFrame; - - // wxPrintf( wxT("active: %s\n"), win->GetTitle().c_str() ); // MR: wxRequestUserAttention related block switch( win->m_urgency_hint ) @@ -799,8 +795,6 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK() if (g_activeFrame == this) g_activeFrame = NULL; - if (g_lastActiveFrame == this) - g_lastActiveFrame = NULL; } bool wxTopLevelWindowGTK::EnableCloseButton( bool enable )