From a7f17c90e572031d950bfd3fd01b4107e87efd98 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 28 Aug 2005 08:05:33 +0000 Subject: [PATCH] Remove useless code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/frame.cpp | 5 ----- src/motif/menu.cpp | 9 --------- 2 files changed, 14 deletions(-) diff --git a/src/motif/frame.cpp b/src/motif/frame.cpp index 6622d42bd1..bf63528fba 100644 --- a/src/motif/frame.cpp +++ b/src/motif/frame.cpp @@ -281,11 +281,6 @@ wxFrame::~wxFrame() if (m_frameMenuBar) { m_frameMenuBar->DestroyMenuBar(); - - // Hack to stop core dump on Ultrix, OSF, for some strange reason. -#if MOTIF_MENUBAR_DELETE_FIX - GetMenuBar()->SetMainWidget((WXWidget) NULL); -#endif delete m_frameMenuBar; m_frameMenuBar = NULL; } diff --git a/src/motif/menu.cpp b/src/motif/menu.cpp index 46e9e5a15f..ed9421976a 100644 --- a/src/motif/menu.cpp +++ b/src/motif/menu.cpp @@ -173,15 +173,6 @@ bool wxMenu::ProcessCommand(wxCommandEvent & event) { bool processed = false; -#if wxUSE_MENU_CALLBACK - // Try a callback - if (m_callback) - { - (void) (*(m_callback)) (*this, event); - processed = true; - } -#endif // wxUSE_MENU_CALLBACK - // Try the menu's event handler if ( !processed && GetEventHandler()) { -- 2.45.2