X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef397583dfdf7ba59ecb0a72659c455f04523c97..882fc8a922b52668732e0427131e66dae33a86d6:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 95c51f5899..26eb1fb525 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -225,16 +225,6 @@ wxWindowBase::~wxWindowBase() wxASSERT_MSG( GetChildren().GetCount() == 0, wxT("children not destroyed") ); - // make sure that there are no dangling pointers left pointing to us - wxPanel *panel = wxDynamicCast(GetParent(), wxPanel); - if ( panel ) - { - if ( panel->GetLastFocus() == this ) - { - panel->SetLastFocus((wxWindow *)NULL); - } - } - #if wxUSE_CARET if ( m_caret ) delete m_caret;