[vlc-commits] macosx: remove outdated code

Felix Paul Kühne git at videolan.org
Tue Jan 24 19:31:57 CET 2012


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jan 23 17:41:57 2012 -0800| [a9b1904817f230f10e3d5b4cc5d02cd8cbd0d457] | committer: Jean-Baptiste Kempf

macosx: remove outdated code
(cherry picked from commit af197084313166e5e05ab609403b8eb3511b09f5)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/macosx/about.h |    1 -
 modules/gui/macosx/about.m |   12 ------------
 2 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/modules/gui/macosx/about.h b/modules/gui/macosx/about.h
index 9580c6e..731c308 100644
--- a/modules/gui/macosx/about.h
+++ b/modules/gui/macosx/about.h
@@ -60,7 +60,6 @@
 
 + (VLAboutBox *)sharedInstance;
 - (void)showAbout;
-- (void)VLCWillTerminate;
 - (void)showHelp;
 - (IBAction)showGPL:(id)sender;
 - (IBAction)helpGoHome:(id)sender;
diff --git a/modules/gui/macosx/about.m b/modules/gui/macosx/about.m
index e02ae55..374f347 100644
--- a/modules/gui/macosx/about.m
+++ b/modules/gui/macosx/about.m
@@ -82,12 +82,6 @@ static VLAboutBox *_o_sharedInstance = nil;
 {
     if(! b_isSetUp )
     {
-        /* we want to know when VLC wants to quit to prevent a crash while scrolling our credits */
-        [[NSNotificationCenter defaultCenter] addObserver: self
-                                                 selector: @selector(VLCWillTerminate)
-                                                     name: NSApplicationWillTerminateNotification
-                                                   object: nil];
-
         /* Get the localized info dictionary (InfoPlist.strings) */
         NSDictionary *o_local_dict;
         o_local_dict = [[NSBundle mainBundle] localizedInfoDictionary];
@@ -194,12 +188,6 @@ static VLAboutBox *_o_sharedInstance = nil;
     }
 }
 
-- (void)VLCWillTerminate
-{
-    [o_scroll_timer invalidate];
-    [[NSNotificationCenter defaultCenter] removeObserver: self];
-}
-
 /*****************************************************************************
 * VLC GPL Window, action called from the about window and the help menu
 *****************************************************************************/



More information about the vlc-commits mailing list