diff --git a/src/mac/app.cpp b/src/mac/app.cpp index 71ea9d67d1..bedbae9605 100644 --- a/src/mac/app.cpp +++ b/src/mac/app.cpp @@ -303,10 +303,7 @@ void wxApp::MacNewFile() static pascal OSStatus MenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data ) { - OSStatus result = eventNotHandledErr ; - UInt32 kind = GetEventKind( event ) ; - - return result ; + return eventNotHandledErr ; } // due to the rather low-level event API of wxWindows, we cannot use RunApplicationEventLoop diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index 71ea9d67d1..bedbae9605 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -303,10 +303,7 @@ void wxApp::MacNewFile() static pascal OSStatus MenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data ) { - OSStatus result = eventNotHandledErr ; - UInt32 kind = GetEventKind( event ) ; - - return result ; + return eventNotHandledErr ; } // due to the rather low-level event API of wxWindows, we cannot use RunApplicationEventLoop