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

Marvin Scholz git at videolan.org
Fri Aug 3 01:45:54 CEST 2018


vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Aug  1 21:35:58 2018 +0200| [1150368a3d7f5bd23aeeb2f83b3b402e58034f17] | committer: Felix Paul Kühne

macosx: SPMediaKeyTap: Remove unused singleton

(cherry picked from commit 2c47b89103359a0506654155833308e9deed1ec1)
Signed-off-by: Felix Paul Kühne <felix at feepk.net>

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

 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 275b34c212..06b5acc8c8 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);
@@ -62,7 +61,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