vlc | branch: master | Felix Paul Kühne <[email protected]> | Sat Jul 18 
18:32:10 2015 +0200| [7510dd1f9687c51b6ee7b57a7997f4af40ae13a4] | committer: 
Felix Paul Kühne

macosx/simple prefs: drop explicit singleton

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

 modules/gui/macosx/simple_prefs.h |    2 --
 modules/gui/macosx/simple_prefs.m |   12 ------------
 2 files changed, 14 deletions(-)

diff --git a/modules/gui/macosx/simple_prefs.h 
b/modules/gui/macosx/simple_prefs.h
index 032f954..90f21fa 100644
--- a/modules/gui/macosx/simple_prefs.h
+++ b/modules/gui/macosx/simple_prefs.h
@@ -27,8 +27,6 @@
 
 @interface VLCSimplePrefs : NSObject
 
-+ (VLCSimplePrefs *)sharedInstance;
-
 @property (readwrite, weak) IBOutlet NSPopUpButton *audio_dolbyPopup;
 @property (readwrite, weak) IBOutlet NSTextField *audio_dolbyLabel;
 @property (readwrite, weak) IBOutlet NSBox *audio_effectsBox;
diff --git a/modules/gui/macosx/simple_prefs.m 
b/modules/gui/macosx/simple_prefs.m
index bf98b41..a911586 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -204,18 +204,6 @@ static NSString* VLCHotkeysSettingToolbarIdentifier = 
@"Hotkeys Settings Item Id
 
 #pragma mark Initialisation
 
-+ (VLCSimplePrefs *)sharedInstance
-{
-    static VLCSimplePrefs *sharedInstance = nil;
-    static dispatch_once_t pred;
-
-    dispatch_once(&pred, ^{
-        sharedInstance = [VLCSimplePrefs new];
-    });
-
-    return sharedInstance;
-}
-
 - (id)init
 {
     self = [super init];

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to