From: Paul Cornett Date: Thu, 7 Jan 2010 18:30:18 +0000 (+0000) Subject: remove unused function GetGdkVisual() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/31f4ed4aa313e7ed804f3e161ac7637dfba70350 remove unused function GetGdkVisual() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/app.h b/include/wx/gtk/app.h index 4b1b2e5029..0954cd400b 100644 --- a/include/wx/gtk/app.h +++ b/include/wx/gtk/app.h @@ -64,10 +64,6 @@ public: // implementation only from now on // ------------------------------- - // This returns the current visual: either that used by wxRootWindow - // or the XVisualInfo* for SGI. - GdkVisual *GetGdkVisual(); - // check for pending events, without interference from our idle source bool EventsPending(); bool DoIdle(); diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index e811ba6d49..72dd08db41 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -277,21 +277,6 @@ bool wxApp::OnInitGui() return true; } -GdkVisual *wxApp::GetGdkVisual() -{ - GdkVisual *visual = NULL; - - XVisualInfo *xvi = (XVisualInfo *)GetXVisualInfo(); - if ( xvi ) - visual = gdkx_visual_get( xvi->visualid ); - else - visual = gdk_drawable_get_visual( wxGetRootWindow()->window ); - - wxASSERT( visual ); - - return visual; -} - // use unusual names for the parameters to avoid conflict with wxApp::arg[cv] bool wxApp::Initialize(int& argc_, wxChar **argv_) {