diff --git a/include/wx/aui/auibar.h b/include/wx/aui/auibar.h index 8fdcfce4e2..05b841983a 100644 --- a/include/wx/aui/auibar.h +++ b/include/wx/aui/auibar.h @@ -618,12 +618,6 @@ protected: wxSize GetLabelSize(const wxString& label); wxAuiToolBarItem* FindToolByPositionWithPacking(wxCoord x, wxCoord y) const; - void DoSetSize(int x, - int y, - int width, - int height, - int sizeFlags = wxSIZE_AUTO) wxOVERRIDE; - protected: // handlers void OnSize(wxSizeEvent& evt); diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index 742c8e200f..4b6f3379c0 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -2326,22 +2326,6 @@ void wxAuiToolBar::OnSize(wxSizeEvent& WXUNUSED(evt)) -void wxAuiToolBar::DoSetSize(int x, - int y, - int width, - int height, - int sizeFlags) -{ - wxSize parent_size = GetParent()->GetClientSize(); - if (x + width > parent_size.x) - width = wxMax(0, parent_size.x - x); - if (y + height > parent_size.y) - height = wxMax(0, parent_size.y - y); - - wxWindow::DoSetSize(x, y, width, height, sizeFlags); -} - - void wxAuiToolBar::OnIdle(wxIdleEvent& evt) { // if orientation doesn't match dock, fix it