[vlc-devel] [VLC 3.x v2 01/11] macosx: SPMediaKeyTap: Remove unused class method

Marvin Scholz epirat07 at gmail.com
Fri Apr 23 01:19:28 UTC 2021


---
 modules/gui/macosx/SPMediaKeyTap.h |  1 -
 modules/gui/macosx/SPMediaKeyTap.m | 13 -------------
 2 files changed, 14 deletions(-)

diff --git a/modules/gui/macosx/SPMediaKeyTap.h b/modules/gui/macosx/SPMediaKeyTap.h
index fd437a8335..66aba1b50e 100644
--- a/modules/gui/macosx/SPMediaKeyTap.h
+++ b/modules/gui/macosx/SPMediaKeyTap.h
@@ -32,7 +32,6 @@
 
 - (id)initWithDelegate:(id)delegate;
 
-+ (BOOL)usesGlobalMediaKeyTap;
 - (BOOL)startWatchingMediaKeys;
 - (void)stopWatchingMediaKeys;
 - (void)handleAndReleaseMediaKeyEvent:(NSEvent *)event;
diff --git a/modules/gui/macosx/SPMediaKeyTap.m b/modules/gui/macosx/SPMediaKeyTap.m
index 5b9505995a..1981b45775 100644
--- a/modules/gui/macosx/SPMediaKeyTap.m
+++ b/modules/gui/macosx/SPMediaKeyTap.m
@@ -155,19 +155,6 @@ static CGEventRef tapEventCallback(CGEventTapProxy proxy, CGEventType type, CGEv
 #pragma mark -
 #pragma mark Accessors
 
-+ (BOOL)usesGlobalMediaKeyTap
-{
-#ifdef _DEBUG
-    // breaking in gdb with a key tap inserted sometimes locks up all mouse and keyboard input forever, forcing reboot
-    return NO;
-#else
-    // XXX(nevyn): MediaKey event tap doesn't work on 10.4, feel free to figure out why if you have the energy.
-    return
-        ![[NSUserDefaults standardUserDefaults] boolForKey:kIgnoreMediaKeysDefaultsKey]
-        && floor(NSAppKitVersionNumber) >= 949/*NSAppKitVersionNumber10_5*/;
-#endif
-}
-
 + (NSArray*)mediaKeyUserBundleIdentifiers
 {
     static NSArray *bundleIdentifiers;
-- 
2.30.1



More information about the vlc-devel mailing list