Commit 985ad1a4 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

macosx/bookmarks: remove explicit singleton

parent 1a5b701e
......@@ -65,7 +65,6 @@
VLCVideoEffects *_videoEffectsWindowController;
VLCAudioEffects *_audioEffectsWindowController;
VLCTrackSynchronization *_trackSynchronizationWindowController;
VLCBookmarks *_bookmarksWindowController;
VLCConvertAndSave *_convertAndSaveWindowController;
AddonsWindowController *_addonsController;
......
......@@ -599,14 +599,14 @@ void WindowClose(vout_window_t *p_wnd)
NSInteger currentStatusWindowLevel = self.currentStatusWindowLevel;
VLCMain *main = [VLCMain sharedInstance];
[[VLCMainWindow sharedInstance] setWindowLevel:i_level];
[[VLCVideoEffects sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[VLCAudioEffects sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[VLCInfo sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[VLCBookmarks sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[main bookmarks] updateCocoaWindowLevel:currentStatusWindowLevel];
[[VLCTrackSynchronization sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[[VLCMain sharedInstance] resumeDialog] updateCocoaWindowLevel:currentStatusWindowLevel];
[[main resumeDialog] updateCocoaWindowLevel:currentStatusWindowLevel];
}
@end
......@@ -27,8 +27,6 @@
@interface VLCBookmarks : NSObject
+ (VLCBookmarks *)sharedInstance;
/* main window */
@property (readwrite, weak) IBOutlet NSWindow *bookmarksWindow;
@property (readwrite, weak) IBOutlet NSButton *addButton;
......
......@@ -45,18 +45,6 @@
@implementation VLCBookmarks
+ (VLCBookmarks *)sharedInstance
{
static VLCBookmarks *sharedInstance = nil;
static dispatch_once_t pred;
dispatch_once(&pred, ^{
sharedInstance = [VLCBookmarks new];
});
return sharedInstance;
}
/*****************************************************************************
* GUI methods
*****************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment