[vlc-commits] macosx/AppleRemote: remove unused singleton
Felix Paul Kühne
git at videolan.org
Tue Jul 21 19:47:17 CEST 2015
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jul 21 18:10:21 2015 +0200| [e85d470c185d1ce4ca5b52bac53616972601ab31] | committer: Felix Paul Kühne
macosx/AppleRemote: remove unused singleton
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e85d470c185d1ce4ca5b52bac53616972601ab31
---
modules/gui/macosx/AppleRemote.h | 1 -
modules/gui/macosx/AppleRemote.m | 12 ------------
2 files changed, 13 deletions(-)
diff --git a/modules/gui/macosx/AppleRemote.h b/modules/gui/macosx/AppleRemote.h
index c3ca22a..7b88b32 100644
--- a/modules/gui/macosx/AppleRemote.h
+++ b/modules/gui/macosx/AppleRemote.h
@@ -105,7 +105,6 @@ The class is not thread safe
id delegate;
}
-+ (AppleRemote *)sharedInstance;
@property (readonly) int remoteId;
@property (readonly) BOOL remoteAvailable;
diff --git a/modules/gui/macosx/AppleRemote.m b/modules/gui/macosx/AppleRemote.m
index db82979..eaaf24c 100644
--- a/modules/gui/macosx/AppleRemote.m
+++ b/modules/gui/macosx/AppleRemote.m
@@ -66,18 +66,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
#pragma public interface
-+ (AppleRemote *)sharedInstance
-{
- static AppleRemote *sharedInstance = nil;
- static dispatch_once_t pred;
-
- dispatch_once(&pred, ^{
- sharedInstance = [AppleRemote new];
- });
-
- return sharedInstance;
-}
-
- (id)init
{
self = [super init];
More information about the vlc-commits
mailing list