Remove unnecessary wxSearchCtrl::DoMoveWindow() override

There is no need to override this virtual function, if the control size
changes, a wxEVT_SIZE event is generated in any case, resulting in a
call to LayoutControls() without explicitly calling it from here.
This commit is contained in:
Vadim Zeitlin
2018-07-09 17:54:09 +02:00
parent 67bceedfda
commit c713bee7ea
2 changed files with 0 additions and 8 deletions

View File

@@ -194,7 +194,6 @@ protected:
// override the base class virtuals involved into geometry calculations // override the base class virtuals involved into geometry calculations
virtual wxSize DoGetBestClientSize() const wxOVERRIDE; virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
virtual void RecalcBitmaps(); virtual void RecalcBitmaps();

View File

@@ -468,13 +468,6 @@ wxSize wxSearchCtrl::DoGetBestClientSize() const
height); height);
} }
void wxSearchCtrl::DoMoveWindow(int x, int y, int width, int height)
{
wxSearchCtrlBase::DoMoveWindow(x, y, width, height);
LayoutControls();
}
void wxSearchCtrl::LayoutControls() void wxSearchCtrl::LayoutControls()
{ {
if ( !m_text ) if ( !m_text )