]> git.saurik.com Git - wxWidgets.git/commitdiff
remove redundant GTK-specific code
authorPaul Cornett <paulcor@bullseye.com>
Wed, 23 Nov 2011 17:21:06 +0000 (17:21 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 23 Nov 2011 17:21:06 +0000 (17:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/graphicc.cpp

index c8f2506cc46099bb64483066a14f5acea5fb0c44..312cd846350ae768ae730d6022c0dbdf2c08f397 100644 (file)
@@ -2346,14 +2346,7 @@ wxGraphicsContext * wxCairoRenderer::CreateContext( const wxMemoryDC& dc)
 wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc)
 {
     ENSURE_LOADED_OR_RETURN(NULL);
 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__
 }
 
 #ifdef __WXMSW__