diff --git a/include/wx/dcgraph.h b/include/wx/dcgraph.h index d9d4ce7e21..dea6c8f7b7 100755 --- a/include/wx/dcgraph.h +++ b/include/wx/dcgraph.h @@ -94,8 +94,6 @@ public: wxGraphicsContext* GetGraphicsContext() { return m_graphicContext; } virtual void SetGraphicsContext( wxGraphicsContext* ctx ); - wxDC* GetBaseDC() { return m_baseDC; } - protected: // the true implementations virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col, @@ -185,7 +183,6 @@ protected: double m_formerScaleX, m_formerScaleY; wxGraphicsContext* m_graphicContext; - wxDC* m_baseDC; }; #endif diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 348012270c..82abf02b33 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -79,7 +79,6 @@ void wxGCDC::SetGraphicsContext( wxGraphicsContext* ctx ) wxGCDC::wxGCDC(const wxWindowDC& dc) { Init(); - m_baseDC = (wxDC*)&dc; SetGraphicsContext( wxGraphicsContext::Create(dc) ); } @@ -87,7 +86,6 @@ wxGCDC::wxGCDC(const wxWindowDC& dc) wxGCDC::wxGCDC(const wxMemoryDC& dc) { Init(); - m_baseDC = (wxDC*)&dc; SetGraphicsContext( wxGraphicsContext::Create(dc) ); } #endif @@ -104,7 +102,6 @@ void wxGCDC::Init() m_brush = *wxWHITE_BRUSH; m_graphicContext = NULL; - m_baseDC = NULL; m_logicalFunctionSupported = true; }