diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2014-01-26 16:38:45 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2014-01-26 16:38:54 +0400 |
commit | 60afe8d2ea3955de73429adda9f3045b3d3979b3 (patch) | |
tree | f76baad2a3e80622e2bf04dc5e64238612fb833b | |
parent | 27aaa3054e3ddca7b71a800399da840789ce235a (diff) |
MUApplicationDelegate: remove unused MKAudioDelegate protocol and its methods.
-rw-r--r-- | Source/Classes/MUApplicationDelegate.m | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/Source/Classes/MUApplicationDelegate.m b/Source/Classes/MUApplicationDelegate.m index 1922a7c..e2d9978 100644 --- a/Source/Classes/MUApplicationDelegate.m +++ b/Source/Classes/MUApplicationDelegate.m @@ -19,8 +19,7 @@ #import "PLCrashReporter.h" @interface MUApplicationDelegate () <UIApplicationDelegate, - UIAlertViewDelegate, - MKAudioDelegate> { + UIAlertViewDelegate> { UIWindow *_window; UINavigationController *_navigationController; MUPublicServerListFetcher *_publistFetcher; @@ -351,23 +350,6 @@ _connectionActive = NO; } -// Implement MKAudioDelegate. -- (BOOL) audioShouldBeRunning:(MKAudio *)audio { - UIApplication *app = [[UIApplication sharedApplication] applicationState]; - UIApplicationState state = [app applicationState]; - switch (state) { - case UIApplicationStateActive: - // When in the foreground, we always keep MKAudio running. - return YES; - case UIApplicationStateBackground: - case UIApplicationStateInactive: - // When backgrounded, only turn on MKAudio if we're connected - // to a server. - return _connectionActive; - } - return NO; -} - - (void) applicationWillResignActive:(UIApplication *)application { // If we have any active connections, don't stop MKAudio. This is // for 'clicking-the-home-button' invocations of this method. |