]> git.saurik.com Git - wxWidgets.git/commitdiff
removing unnecessary - and incorrect - override, fixes #14319
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 19 May 2012 14:24:13 +0000 (14:24 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 19 May 2012 14:24:13 +0000 (14:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dcgraph.h
src/common/dcgraph.cpp

index 99ecc11fca490e0aeed7d4b29b71f9fa9a5c3e97..18a173c4355817c2a44905f28d7745eaa204988b 100644 (file)
@@ -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);
index 427ef4ab311cb17414e379e64221c3046760443e..41bbfa37c026bd32d754daba101f4fd3eb4138db 100644 (file)
@@ -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);