From ace212a311943713dd90bd3c260f90bf537f26a1 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 22 Feb 2016 10:34:30 -0800 Subject: [PATCH] Remove redundant wxGCDC::{Get,Set}GraphicsContext() overrides --- include/wx/dcgraph.h | 3 --- src/common/dcgraph.cpp | 14 -------------- 2 files changed, 17 deletions(-) diff --git a/include/wx/dcgraph.h b/include/wx/dcgraph.h index dbfae2cd35..612bd1c089 100644 --- a/include/wx/dcgraph.h +++ b/include/wx/dcgraph.h @@ -36,9 +36,6 @@ public: wxGCDC(); virtual ~wxGCDC(); - wxGraphicsContext* GetGraphicsContext() const wxOVERRIDE; - void SetGraphicsContext( wxGraphicsContext* ctx ) wxOVERRIDE; - #ifdef __WXMSW__ // override wxDC virtual functions to provide access to HDC associated with // this Graphics object (implemented in src/msw/graphics.cpp) diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index eeabbf1bdc..a73e04d255 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -120,20 +120,6 @@ wxGCDC::~wxGCDC() { } -wxGraphicsContext* wxGCDC::GetGraphicsContext() const -{ - if (!m_pimpl) return NULL; - wxGCDCImpl *gc_impl = (wxGCDCImpl*) m_pimpl; - return gc_impl->GetGraphicsContext(); -} - -void wxGCDC::SetGraphicsContext( wxGraphicsContext* ctx ) -{ - if (!m_pimpl) return; - wxGCDCImpl *gc_impl = (wxGCDCImpl*) m_pimpl; - gc_impl->SetGraphicsContext( ctx ); -} - wxIMPLEMENT_ABSTRACT_CLASS(wxGCDCImpl, wxDCImpl); wxGCDCImpl::wxGCDCImpl( wxDC *owner ) :