From d61989a7de90c62c12ddd61cb820162897ed22cd Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 21 Aug 2007 09:06:15 +0000 Subject: [PATCH] Removed unnecessary code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/auibook.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index 1cc7df0cfd..365339947c 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -1948,22 +1948,6 @@ bool wxAuiTabContainer::IsTabVisible(int tabPage, int tabOffset, wxDC* dc, wxWin wxAuiNotebookPage& page = m_pages.Item(i); wxAuiTabContainerButton& tab_button = m_tab_close_buttons.Item(i); - // determine if a close button is on this tab - if ((m_flags & wxAUI_NB_CLOSE_ON_ALL_TABS) != 0 || - ((m_flags & wxAUI_NB_CLOSE_ON_ACTIVE_TAB) != 0 && page.active)) - { - if (tab_button.cur_state == wxAUI_BUTTON_STATE_HIDDEN) - { - tab_button.id = wxAUI_BUTTON_CLOSE; - tab_button.cur_state = wxAUI_BUTTON_STATE_NORMAL; - tab_button.location = wxCENTER; - } - } - else - { - tab_button.cur_state = wxAUI_BUTTON_STATE_HIDDEN; - } - rect.x = offset; rect.width = m_rect.width - right_buttons_width - offset - 2;