diff --git a/include/wx/window.h b/include/wx/window.h index 63b37aedc4..b754c4ac8e 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -1120,8 +1120,6 @@ protected: #if wxUSE_ACCESSIBILITY wxAccessible* m_accessible; #endif - // Best size for controls which fail to implement DoGetBestSize() - wxSize m_bestSize; // Virtual size (scrolling) wxSize m_virtualSize; diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index 903e187827..989f6f797d 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -84,8 +84,6 @@ bool wxVListBox::Create(wxWindow *parent, m_colBgSel = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT); - m_bestSize = GetSize(); - return true; }