From a9946c4e6bf6db7b81eed4fe513513c22dff2071 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 19 May 2012 14:24:13 +0000 Subject: [PATCH] removing unnecessary - and incorrect - override, fixes #14319 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dcgraph.h | 2 -- src/common/dcgraph.cpp | 29 ----------------------------- 2 files changed, 31 deletions(-) diff --git a/include/wx/dcgraph.h b/include/wx/dcgraph.h index 99ecc11fca..18a173c435 100644 --- a/include/wx/dcgraph.h +++ b/include/wx/dcgraph.h @@ -102,8 +102,6 @@ public: virtual int GetDepth() const; virtual wxSize GetPPI() const; - virtual void SetMapMode(wxMappingMode mode); - virtual void SetLogicalFunction(wxRasterOperationMode function); virtual void SetTextForeground(const wxColour& colour); diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 427ef4ab31..41bbfa37c0 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -399,35 +399,6 @@ void wxGCDCImpl::SetTextBackground( const wxColour &col ) m_textBackgroundColour = col; } -void wxGCDCImpl::SetMapMode( wxMappingMode mode ) -{ - switch (mode) - { - case wxMM_TWIPS: - SetLogicalScale( twips2mm * m_mm_to_pix_x, twips2mm * m_mm_to_pix_y ); - break; - - case wxMM_POINTS: - SetLogicalScale( pt2mm * m_mm_to_pix_x, pt2mm * m_mm_to_pix_y ); - break; - - case wxMM_METRIC: - SetLogicalScale( m_mm_to_pix_x, m_mm_to_pix_y ); - break; - - case wxMM_LOMETRIC: - SetLogicalScale( m_mm_to_pix_x / 10.0, m_mm_to_pix_y / 10.0 ); - break; - - case wxMM_TEXT: - default: - SetLogicalScale( 1.0, 1.0 ); - break; - } - - ComputeScaleAndOrigin(); -} - wxSize wxGCDCImpl::GetPPI() const { return wxSize(72, 72); -- 2.45.2