[vlc-commits] macosx: remove stray code

David Fuhrmann git at videolan.org
Sun Jul 12 18:57:50 CEST 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jul 11 15:25:26 2015 +0200| [5aaaa2a35891a4ef1f95e0c677af47837270536a] | committer: David Fuhrmann

macosx: remove stray code

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

 modules/gui/macosx/playlist.h |    2 --
 modules/gui/macosx/playlist.m |   16 ----------------
 2 files changed, 18 deletions(-)

diff --git a/modules/gui/macosx/playlist.h b/modules/gui/macosx/playlist.h
index a89c317..f22e4e7 100644
--- a/modules/gui/macosx/playlist.h
+++ b/modules/gui/macosx/playlist.h
@@ -75,8 +75,6 @@
 
     IBOutlet id o_playlist_header;
 
-    int currentResumeTimeout;
-
     PLModel *o_model;
 }
 
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 3f3afa7..0bbcb9c 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -946,22 +946,6 @@
     return YES;
 }
 
-- (void)updateAlertWindow:(NSTimer *)timer
-{
-    NSAlert *alert = [timer userInfo];
-
-    --currentResumeTimeout;
-    if (currentResumeTimeout <= 0) {
-        [[alert window] close];
-        [NSApp abortModal];
-    }
-
-    NSString *buttonLabel = _NS("Restart playback");
-    buttonLabel = [buttonLabel stringByAppendingFormat:@" (%d)", currentResumeTimeout];
-
-    [[[alert buttons] objectAtIndex:2] setTitle:buttonLabel];
-}
-
 - (void)continuePlaybackWhereYouLeftOff:(input_thread_t *)p_input_thread
 {
     NSDictionary *recentlyPlayedFiles = [[NSUserDefaults standardUserDefaults] objectForKey:@"recentlyPlayedMedia"];



More information about the vlc-commits mailing list