From b94a54d363bd1c67b2f4fbe7aaa5e66ad52d9ee6 Mon Sep 17 00:00:00 2001 From: clobber Date: Sun, 8 Sep 2013 12:26:57 -0700 Subject: [PATCH] Remove unused method. --- OpenEmu/OEMainWindowController.m | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/OpenEmu/OEMainWindowController.m b/OpenEmu/OEMainWindowController.m index b9aaa8a3a7..cc9525b623 100644 --- a/OpenEmu/OEMainWindowController.m +++ b/OpenEmu/OEMainWindowController.m @@ -309,27 +309,6 @@ - (void)libraryController:(OELibraryController *)sender didSelectSaveState:(OEDB [self OE_openGameDocumentWithGame:nil saveState:saveState]; } -- (void)stopEmulation:(id)sender -{ - // If we are in full screen mode and terminating the emulation will exit full screen, - // the controller switching animation interferes with the exiting full screen animation. - // We therefore only animate controller switching in case there won't be a concurrent - // exit full screen animation. See issue #245. - [_gameDocument setGameWindowController:nil]; - [_gameDocument stopEmulation:self]; - _gameDocument = nil; - _mainWindowRunsGame = NO; - - BOOL exitFullScreen = (_shouldExitFullScreenWhenGameFinishes && [[self window] isFullScreen]); - if(exitFullScreen) - { - [[self window] toggleFullScreen:self]; - _shouldExitFullScreenWhenGameFinishes = NO; - } - - [self setCurrentContentController:nil animate:exitFullScreen]; -} - #pragma mark - NSWindow delegate - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)frameSize