Commit 4d69a4c5 authored by David Fuhrmann's avatar David Fuhrmann

macosx: simplifications

parent 9eb1e87c
...@@ -1575,10 +1575,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1575,10 +1575,7 @@ static VLCMain *_o_sharedMainInstance = nil;
- (id)controls - (id)controls
{ {
if (o_controls)
return o_controls; return o_controls;
return nil;
} }
- (id)bookmarks - (id)bookmarks
...@@ -1594,9 +1591,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1594,9 +1591,6 @@ static VLCMain *_o_sharedMainInstance = nil;
- (id)open - (id)open
{ {
if (!o_open)
return nil;
if (!nib_open_loaded) if (!nib_open_loaded)
nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner: NSApp]; nib_open_loaded = [NSBundle loadNibNamed:@"Open" owner: NSApp];
...@@ -1627,10 +1621,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1627,10 +1621,7 @@ static VLCMain *_o_sharedMainInstance = nil;
- (id)playlist - (id)playlist
{ {
if (o_playlist)
return o_playlist; return o_playlist;
return nil;
} }
- (id)info - (id)info
...@@ -1638,10 +1629,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1638,10 +1629,7 @@ static VLCMain *_o_sharedMainInstance = nil;
if (! nib_info_loaded) if (! nib_info_loaded)
nib_info_loaded = [NSBundle loadNibNamed:@"MediaInfo" owner: NSApp]; nib_info_loaded = [NSBundle loadNibNamed:@"MediaInfo" owner: NSApp];
if (o_info)
return o_info; return o_info;
return nil;
} }
- (id)wizard - (id)wizard
...@@ -1653,6 +1641,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1653,6 +1641,7 @@ static VLCMain *_o_sharedMainInstance = nil;
nib_wizard_loaded = [NSBundle loadNibNamed:@"Wizard" owner: NSApp]; nib_wizard_loaded = [NSBundle loadNibNamed:@"Wizard" owner: NSApp];
[o_wizard initStrings]; [o_wizard initStrings];
} }
return o_wizard; return o_wizard;
} }
...@@ -1667,10 +1656,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1667,10 +1656,7 @@ static VLCMain *_o_sharedMainInstance = nil;
- (id)eyeTVController - (id)eyeTVController
{ {
if (o_eyetv)
return o_eyetv; return o_eyetv;
return nil;
} }
- (id)appleRemoteController - (id)appleRemoteController
......
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