Remove useless code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2005-08-28 08:05:33 +00:00
parent 8b7b0d67b0
commit a7f17c90e5
2 changed files with 0 additions and 14 deletions

View File

@@ -281,11 +281,6 @@ wxFrame::~wxFrame()
if (m_frameMenuBar) if (m_frameMenuBar)
{ {
m_frameMenuBar->DestroyMenuBar(); 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; delete m_frameMenuBar;
m_frameMenuBar = NULL; m_frameMenuBar = NULL;
} }

View File

@@ -173,15 +173,6 @@ bool wxMenu::ProcessCommand(wxCommandEvent & event)
{ {
bool processed = false; 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 // Try the menu's event handler
if ( !processed && GetEventHandler()) if ( !processed && GetEventHandler())
{ {