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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user