X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ddc8faa9e1f9d7dc99ef11e2294ad33915092024..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/msw/dcclient.cpp diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index 112cf781f5..1da0e01531 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -377,15 +377,7 @@ wxPaintDCExImpl::wxPaintDCExImpl(wxDC *owner, wxWindow *window, WXHDC dc) wxCHECK_RET( dc, wxT("wxPaintDCEx requires an existing device context") ); m_window = window; - - m_hDC = FindDCInCache(m_window); - if ( !m_hDC ) - { - // not in cache, record it there - gs_PaintDCInfos[m_window] = new wxPaintDCInfoExternal(dc); - - m_hDC = dc; - } + m_hDC = dc; } wxPaintDCExImpl::~wxPaintDCExImpl()