X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f4880a451af5b982e775acae7f316793c3df0b5..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/univ/notebook.cpp?ds=inline diff --git a/src/univ/notebook.cpp b/src/univ/notebook.cpp index 44129b423b..da13abe041 100644 --- a/src/univ/notebook.cpp +++ b/src/univ/notebook.cpp @@ -1258,34 +1258,6 @@ void wxNotebook::ScrollLastTo(size_t page) // wxNotebook sizing/moving // ---------------------------------------------------------------------------- -wxSize wxNotebook::DoGetBestClientSize() const -{ - // calculate the max page size - wxSize size; - - size_t count = GetPageCount(); - if ( count ) - { - for ( size_t n = 0; n < count; n++ ) - { - wxSize sizePage = m_pages[n]->GetSize(); - - if ( size.x < sizePage.x ) - size.x = sizePage.x; - if ( size.y < sizePage.y ) - size.y = sizePage.y; - } - } - else // no pages - { - // use some arbitrary default size - size.x = - size.y = 100; - } - - return GetSizeForPage(size); -} - void wxNotebook::DoMoveWindow(int x, int y, int width, int height) { wxControl::DoMoveWindow(x, y, width, height);