From fc74574df02e1f2414e7a9a43a94efc00bad3c26 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 17 Sep 2013 20:44:54 +0200 Subject: HIDRemote: remove OS X version checks Turns out that these checks were for versions of OS X that mpv doesn't even support anymore. So just remove the checks since they cause a deprecation warning. --- osdep/ar/HIDRemote.m | 45 +-------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) (limited to 'osdep') diff --git a/osdep/ar/HIDRemote.m b/osdep/ar/HIDRemote.m index f05628c040..4e5b88e770 100644 --- a/osdep/ar/HIDRemote.m +++ b/osdep/ar/HIDRemote.m @@ -187,33 +187,6 @@ static HIDRemote *sHIDRemote = nil; + (BOOL)isCandelairInstallationRequiredForRemoteMode:(HIDRemoteMode)remoteMode { - SInt32 systemVersion = 0; - - // Determine OS version - if (Gestalt(gestaltSystemVersion, &systemVersion) == noErr) - { - switch (systemVersion) - { - case 0x1060: // OS 10.6 - case 0x1061: // OS 10.6.1 - // OS X 10.6(.0) and OS X 10.6.1 require the Candelair driver for to be installed, - // so that third party apps can acquire an exclusive lock on the receiver HID Device - // via IOKit. - - switch (remoteMode) - { - case kHIDRemoteModeExclusive: - case kHIDRemoteModeExclusiveAuto: - if (![self isCandelairInstalled]) - { - return (YES); - } - break; - } - break; - } - } - return (NO); } @@ -1405,23 +1378,7 @@ static HIDRemote *sHIDRemote = nil; { if ([(NSString *)ioKitClassName isEqual:@"AppleIRController"]) { - SInt32 systemVersion; - - if (Gestalt(gestaltSystemVersion, &systemVersion) == noErr) - { - if (systemVersion >= 0x1062) - { - // Support for the Aluminum Remote was added only with OS 10.6.2. Previous versions can not distinguish - // between the Center and the new, seperate Play/Pause button. They'll recognize both as presses of the - // "Center" button. - // - // You CAN, however, receive Aluminum Remote button presses even under OS 10.5 when using Remote Buddy's - // Virtual Remote. While Remote Buddy does support the Aluminum Remote across all OS releases it runs on, - // its Virtual Remote can only emulate Aluminum Remote button presses under OS 10.5 and up in order not to - // break compatibility with applications whose IR Remote code relies on driver internals. [13-Nov-09] - supportLevel = kHIDRemoteAluminumRemoteSupportLevelNative; - } - } + supportLevel = kHIDRemoteAluminumRemoteSupportLevelNative; } CFRelease(ioKitClassName); -- cgit v1.2.3