removed more unused variables (thanks Borland)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-29 23:40:23 +00:00
parent 1fcac43d7a
commit d3b647c2df
2 changed files with 2 additions and 8 deletions

View File

@@ -400,16 +400,14 @@ bool wxTabMDIChildFrame::Destroy()
wxTabMDIClientWindow* pClientWindow = pParentFrame->GetClientWindow();
wxASSERT_MSG(pClientWindow, wxT("Missing MDI Client Window"));
bool bActive = false;
if (pParentFrame->GetActiveChild() == this)
{
pParentFrame->SetActiveChild(NULL);
pParentFrame->SetChildMenuBar(NULL);
bActive = true;
}
size_t pos, page_count = pClientWindow->GetPageCount();
for (pos = 0; pos < page_count; pos++)
const size_t page_count = pClientWindow->GetPageCount();
for (size_t pos = 0; pos < page_count; pos++)
{
if (pClientWindow->GetPage(pos) == this)
return pClientWindow->DeletePage(pos);