[vlc-commits] macosx: remove stray code

David Fuhrmann git at videolan.org
Sun Jul 12 19:21:16 CEST 2015


vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jul 11 15:25:26 2015 +0200| [3187904de00605a00ee41ad40aa7da65fa11a671] | committer: David Fuhrmann

macosx: remove stray code

(cherry picked from commit 5aaaa2a35891a4ef1f95e0c677af47837270536a)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=3187904de00605a00ee41ad40aa7da65fa11a671
---

 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 59e7276..d84c5de 100644
--- a/modules/gui/macosx/playlist.h
+++ b/modules/gui/macosx/playlist.h
@@ -105,8 +105,6 @@
     IBOutlet id o_save_accessory_text;
 
     IBOutlet id o_playlist_header;
-
-    int currentResumeTimeout;
 }
 
 - (void)searchfieldChanged:(NSNotification *)o_notification;
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 8a31ece..2b652c6 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1506,22 +1506,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