+wxNotebookPage *wxNotebookBase::DoRemovePage(int nPage)
+{
+ wxCHECK_MSG( nPage >= 0 && (size_t)nPage < m_pages.GetCount(), NULL,
+ _T("invalid page index in wxNotebookBase::DoRemovePage()") );
+
+ wxNotebookPage *pageRemoved = m_pages[nPage];
+ m_pages.RemoveAt(nPage);
+
+ return pageRemoved;
+}
+