diff --git a/include/wx/gtk/notebook.h b/include/wx/gtk/notebook.h index 1830da0e9e..d19a9cd6d6 100644 --- a/include/wx/gtk/notebook.h +++ b/include/wx/gtk/notebook.h @@ -80,8 +80,6 @@ public: // operations // ---------- - // remove one page from the notebook - bool DeletePage(size_t nPage); // remove all pages bool DeleteAllPages(); diff --git a/include/wx/gtk1/notebook.h b/include/wx/gtk1/notebook.h index 1830da0e9e..d19a9cd6d6 100644 --- a/include/wx/gtk1/notebook.h +++ b/include/wx/gtk1/notebook.h @@ -80,8 +80,6 @@ public: // operations // ---------- - // remove one page from the notebook - bool DeletePage(size_t nPage); // remove all pages bool DeleteAllPages(); diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 91114c0491..9bd054e96f 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -564,7 +564,7 @@ bool wxNotebook::DeleteAllPages() return wxNotebookBase::DeleteAllPages(); } -bool wxNotebook::DeletePage( size_t page ) +wxNotebookPage *wxNotebook::DoRemovePage( size_t page ) { if ( m_selection != -1 && (size_t)m_selection >= page ) { @@ -572,12 +572,6 @@ bool wxNotebook::DeletePage( size_t page ) m_selection = -1; } - // it will call our DoRemovePage() to do the real work - return wxNotebookBase::DeletePage(page); -} - -wxNotebookPage *wxNotebook::DoRemovePage( size_t page ) -{ wxNotebookPage *client = wxNotebookBase::DoRemovePage(page); if ( !client ) return NULL; diff --git a/src/gtk1/notebook.cpp b/src/gtk1/notebook.cpp index 91114c0491..9bd054e96f 100644 --- a/src/gtk1/notebook.cpp +++ b/src/gtk1/notebook.cpp @@ -564,7 +564,7 @@ bool wxNotebook::DeleteAllPages() return wxNotebookBase::DeleteAllPages(); } -bool wxNotebook::DeletePage( size_t page ) +wxNotebookPage *wxNotebook::DoRemovePage( size_t page ) { if ( m_selection != -1 && (size_t)m_selection >= page ) { @@ -572,12 +572,6 @@ bool wxNotebook::DeletePage( size_t page ) m_selection = -1; } - // it will call our DoRemovePage() to do the real work - return wxNotebookBase::DeletePage(page); -} - -wxNotebookPage *wxNotebook::DoRemovePage( size_t page ) -{ wxNotebookPage *client = wxNotebookBase::DoRemovePage(page); if ( !client ) return NULL;