[vlc-commits] macosx: SPMediaKeyTap: Remove unused class method

Marvin Scholz git at videolan.org
Fri Apr 23 21:27:34 UTC 2021


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Apr 22 16:44:06 2021 +0200| [cec7f58f83d1d241508125366611d3cac811c24a] | committer: Marvin Scholz

macosx: SPMediaKeyTap: Remove unused class method

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=cec7f58f83d1d241508125366611d3cac811c24a
---

 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;



More information about the vlc-commits mailing list