From: Vadim Zeitlin Date: Sun, 27 Aug 2006 10:12:10 +0000 (+0000) Subject: removed g_eraseGC and wxWinModule used for initializing it as it was unused X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5540f0ba6ce6d2a1dfb41f192865290ff15f392d removed g_eraseGC and wxWinModule used for initializing it as it was unused git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 6c9b7669f9..a6544f8fe6 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -219,8 +219,6 @@ extern bool g_blockEventsOnDrag; extern bool g_blockEventsOnScroll; extern wxCursor g_globalCursor; -static GdkGC *g_eraseGC = NULL; - // mouse capture state: the window which has it and if the mouse is currently // inside it static wxWindowGTK *g_captureWindow = (wxWindowGTK*) NULL; @@ -4319,32 +4317,3 @@ void wxRemoveGrab(wxWindow* window) gtk_grab_remove( (GtkWidget*) window->GetHandle() ); } -// ---------------------------------------------------------------------------- -// wxWinModule -// ---------------------------------------------------------------------------- - -class wxWinModule : public wxModule -{ -public: - bool OnInit(); - void OnExit(); - -private: - DECLARE_DYNAMIC_CLASS(wxWinModule) -}; - -IMPLEMENT_DYNAMIC_CLASS(wxWinModule, wxModule) - -bool wxWinModule::OnInit() -{ - // g_eraseGC = gdk_gc_new( gdk_get_default_root_window() ); - // gdk_gc_set_fill( g_eraseGC, GDK_SOLID ); - - return true; -} - -void wxWinModule::OnExit() -{ - if (g_eraseGC) - g_object_unref (g_eraseGC); -}