diff --git a/src/osx/iphone/evtloop.mm b/src/osx/iphone/evtloop.mm index 38a786578f..41b8235296 100644 --- a/src/osx/iphone/evtloop.mm +++ b/src/osx/iphone/evtloop.mm @@ -79,28 +79,6 @@ static int CalculateUIEventMaskFromEventCategory(wxEventCategory cat) } */ -@interface wxAppDelegate : NSObject { -} - -@end - -@implementation wxAppDelegate - -- (void)applicationDidFinishLaunching:(UIApplication *)application { - wxTheApp->OnInit(); -} - -- (void)applicationWillTerminate:(UIApplication *)application { - wxCloseEvent event; - wxTheApp->OnEndSession(event); -} - -- (void)dealloc { - [super dealloc]; -} - -@end - wxGUIEventLoop::wxGUIEventLoop() { } diff --git a/src/osx/iphone/utils.mm b/src/osx/iphone/utils.mm index 66d1970dee..884a2d16e0 100644 --- a/src/osx/iphone/utils.mm +++ b/src/osx/iphone/utils.mm @@ -78,14 +78,6 @@ bool wxApp::CallOnInit() return true; } -int wxApp::OnRun() -{ - wxMacAutoreleasePool pool; - const char* appname = "app"; - UIApplicationMain( 1, (char**) &appname, nil, @"wxAppDelegate" ); - return 1; -} - bool wxApp::DoInitGui() { return true;