[vlc-commits] macosx: SPMediaKeyTap: Remove unused singleton

Marvin Scholz git at videolan.org
Wed Aug 1 22:00:46 CEST 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Aug  1 21:35:58 2018 +0200| [2c47b89103359a0506654155833308e9deed1ec1] | committer: Marvin Scholz

macosx: SPMediaKeyTap: Remove unused singleton

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

 modules/gui/macosx/SPMediaKeyTap.m | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/gui/macosx/SPMediaKeyTap.m b/modules/gui/macosx/SPMediaKeyTap.m
index 766e591e8b..7b1d061819 100644
--- a/modules/gui/macosx/SPMediaKeyTap.m
+++ b/modules/gui/macosx/SPMediaKeyTap.m
@@ -43,7 +43,6 @@
 - (void)stopWatchingAppSwitching;
 - (void)eventTapThread;
 @end
-static SPMediaKeyTap *singleton = nil;
 
 static pascal OSStatus appSwitched (EventHandlerCallRef nextHandler, EventRef evt, void* userData);
 static pascal OSStatus appTerminated (EventHandlerCallRef nextHandler, EventRef evt, void* userData);
@@ -63,7 +62,6 @@ static CGEventRef tapEventCallback(CGEventTapProxy proxy, CGEventType type, CGEv
     if (self) {
         _delegate = delegate;
         [self startWatchingAppSwitching];
-        singleton = self;
         _mediaKeyAppList = [NSMutableArray new];
     }
     return self;



More information about the vlc-commits mailing list