[vlc-commits] macosx: SPMediaKeyTap: Clean up public header

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


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Apr 23 01:25:47 2021 +0200| [d877c6147a7a010c1705dea33260b1b3b1afe8c1] | committer: Marvin Scholz

macosx: SPMediaKeyTap: Clean up public header

Remove unused constant and move a private method
out of the public header.

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

 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);



More information about the vlc-commits mailing list