From 3184454fc04cf572075c9473535fd07b8f9839c7 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Mon, 24 Jul 2006 07:16:20 +0000 Subject: [PATCH] removed some commented-out code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/tabmdi.cpp | 49 ---------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/src/aui/tabmdi.cpp b/src/aui/tabmdi.cpp index add285982c..78f618e0a4 100644 --- a/src/aui/tabmdi.cpp +++ b/src/aui/tabmdi.cpp @@ -417,55 +417,6 @@ bool wxTabMDIChildFrame::Destroy() return false; } -/* - wxTabMDIParentFrame* pParentFrame = GetMDIParentFrame(); - wxASSERT_MSG(pParentFrame, wxT("Missing MDI Parent Frame")); - - bool bActive = false; - if (pParentFrame->GetActiveChild() == this) - { - pParentFrame->SetActiveChild(NULL); - pParentFrame->SetChildMenuBar(NULL); - bActive = true; - } - - wxTabMDIClientWindow* pClientWindow = pParentFrame->GetClientWindow(); - - // remove page if it is still there - size_t pos; - for (pos = 0; pos < pClientWindow->GetPageCount(); pos++) - { - if (pClientWindow->GetPage(pos) == this) - { - if (pClientWindow->RemovePage(pos)) - pClientWindow->Refresh(); - break; - } - } - - if (bActive) - { - // Set the new selection to the a remaining page - if (pos < pClientWindow->GetPageCount()) - { - pClientWindow->SetSelection(pos); - } - else - { - if (pClientWindow->GetPageCount() >= 1) - pClientWindow->SetSelection(pClientWindow->GetPageCount() - 1); - } - } - - // delete the child frame with pending delete, as is - // customary with frame windows - if (!wxPendingDelete.Member(this)) - wxPendingDelete.Append(this); - - return true; -*/ - - #if wxUSE_MENUS void wxTabMDIChildFrame::SetMenuBar(wxMenuBar *menu_bar) { -- 2.45.2