From 54e9150157fe89fcf6dea78bebecd40540d82ced Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 5 Dec 2018 23:39:00 +0100 Subject: [PATCH] Remove redundant wxDFBDCImpl::m_mm_to_pix_[xy] members The base class already has exactly the same members, so just use them instead. No real changes, just avoid (or at least reduce) confusion. --- include/wx/dfb/dc.h | 2 -- src/dfb/dc.cpp | 5 ----- 2 files changed, 7 deletions(-) diff --git a/include/wx/dfb/dc.h b/include/wx/dfb/dc.h index 141224ba68..4dac548d98 100644 --- a/include/wx/dfb/dc.h +++ b/include/wx/dfb/dc.h @@ -157,8 +157,6 @@ private: protected: wxIDirectFBSurfacePtr m_surface; - double m_mm_to_pix_x, m_mm_to_pix_y; - friend class WXDLLIMPEXP_FWD_CORE wxOverlayImpl; // for Init wxDECLARE_ABSTRACT_CLASS(wxDFBDCImpl); diff --git a/src/dfb/dc.cpp b/src/dfb/dc.cpp index 241bcd0562..b718de4c98 100644 --- a/src/dfb/dc.cpp +++ b/src/dfb/dc.cpp @@ -51,11 +51,6 @@ void wxDFBDCImpl::DFBInit(const wxIDirectFBSurfacePtr& surface) wxCHECK_RET( surface != NULL, "invalid surface" ); - m_mm_to_pix_x = (double)wxGetDisplaySize().GetWidth() / - (double)wxGetDisplaySizeMM().GetWidth(); - m_mm_to_pix_y = (double)wxGetDisplaySize().GetHeight() / - (double)wxGetDisplaySizeMM().GetHeight(); - SetFont(DEFAULT_FONT); SetPen(DEFAULT_PEN); SetBrush(DEFAULT_BRUSH);