From: Paul Cornett Date: Wed, 23 Nov 2011 17:21:06 +0000 (+0000) Subject: remove redundant GTK-specific code X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0f31a78f36a3b2d61a1940fe332fe9958b28850e?hp=815f65bd0f673965230ed915d794497a8818dd35 remove redundant GTK-specific code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index c8f2506cc4..312cd84635 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -2346,14 +2346,7 @@ wxGraphicsContext * wxCairoRenderer::CreateContext( const wxMemoryDC& dc) wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc) { ENSURE_LOADED_OR_RETURN(NULL); -#ifdef __WXGTK20__ - const wxDCImpl *impl = dc.GetImpl(); - cairo_t* context = (cairo_t*) impl->GetCairoContext(); - if (context) - return new wxCairoContext(this,dc); - else -#endif - return new wxCairoContext(this,dc); + return new wxCairoContext(this, dc); } #ifdef __WXMSW__