[vlc-devel] [VLC 3.x v2 10/11] macosx: SPMediaKeyTap: Clean up public header

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


Remove unused constant and move a private method
out of the public header.
---
 modules/gui/macosx/SPMediaKeyTap.h | 11 -----------
 modules/gui/macosx/SPMediaKeyTap.m |  3 +--
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/modules/gui/macosx/SPMediaKeyTap.h b/modules/gui/macosx/SPMediaKeyTap.h
index b8cb8b5780..fc28bf0d57 100644
--- a/modules/gui/macosx/SPMediaKeyTap.h
+++ b/modules/gui/macosx/SPMediaKeyTap.h
@@ -35,19 +35,8 @@
 
 - (BOOL)startWatchingMediaKeys;
 - (void)stopWatchingMediaKeys;
-- (void)handleAndReleaseMediaKeyEvent:(NSEvent *)event;
 @end
 
 @interface NSObject (SPMediaKeyTapDelegate)
 - (void)mediaKeyTap:(SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event;
 @end
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern NSString *kIgnoreMediaKeysDefaultsKey;
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/modules/gui/macosx/SPMediaKeyTap.m b/modules/gui/macosx/SPMediaKeyTap.m
index 4e046214d8..67686de132 100644
--- a/modules/gui/macosx/SPMediaKeyTap.m
+++ b/modules/gui/macosx/SPMediaKeyTap.m
@@ -27,8 +27,6 @@
 // Define to enable app list debug output
 // #define DEBUG_SPMEDIAKEY_APPLIST 1
 
-NSString *kIgnoreMediaKeysDefaultsKey = @"SPIgnoreMediaKeys";
-
 @interface SPMediaKeyTap () {
     CFMachPortRef _eventPort;
     CFRunLoopSourceRef _eventPortSource;
@@ -40,6 +38,7 @@ NSString *kIgnoreMediaKeysDefaultsKey = @"SPIgnoreMediaKeys";
 - (void)setShouldInterceptMediaKeyEvents:(BOOL)newSetting;
 - (void)startWatchingAppSwitching;
 - (void)stopWatchingAppSwitching;
+- (void)handleAndReleaseMediaKeyEvent:(NSEvent *)event;
 @end
 
 static CGEventRef tapEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon);
-- 
2.30.1



More information about the vlc-devel mailing list