From a5e9befd4d3add8afca6d48fd7666c09f82d0961 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Thu, 4 Jan 2024 12:49:37 -0800 Subject: [PATCH] Remove unused class Unused since 025f5d1450 (Don't cache HDC used by wxPaintDCEx in wxMSW., 2013-03-09) --- src/msw/dcclient.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index cf956ef7d5..cc2549ca7c 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -95,28 +95,6 @@ private: wxDECLARE_NO_COPY_CLASS(wxPaintDCInfoOur); }; -// This subclass contains information for the HDCs we receive from outside, as -// WPARAM of WM_PAINT itself. -class wxPaintDCInfoExternal : public wxPaintDCInfo -{ -public: - wxPaintDCInfoExternal(HDC hdc) - : wxPaintDCInfo(hdc), - m_state(::SaveDC(hdc)) - { - } - - virtual ~wxPaintDCInfoExternal() - { - ::RestoreDC(m_hdc, m_state); - } - -private: - const int m_state; - - wxDECLARE_NO_COPY_CLASS(wxPaintDCInfoExternal); -}; - // The global map containing HDC to use for the given window. The entries in // this map only exist during WM_PAINT processing and are destroyed when it is // over.