Skip to content

Commit

Permalink
Remove unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
clobber committed Sep 8, 2013
1 parent dff7e7d commit b94a54d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions OpenEmu/OEMainWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b94a54d

Please sign in to comment.