X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20aed026475a23a931556bb9da6f59e7af6b5ff2..fa10c70ceb3a08a11302c00c9f0e29941174a21b:/src/common/menucmn.cpp?ds=sidebyside diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 5e9ea0f289..865d668be2 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -285,10 +285,6 @@ void wxMenuBase::Init(long style) m_style = style; m_clientData = (void *)NULL; m_eventHandler = this; - -#if wxUSE_MENU_CALLBACK - m_callback = (wxFunction) NULL; -#endif // wxUSE_MENU_CALLBACK } wxMenuBase::~wxMenuBase() @@ -584,15 +580,6 @@ bool wxMenuBase::SendEvent(int id, int checked) 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 ) {