From fb28242396871f7148dfd76ea8a5f042a54df639 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Wed, 20 Feb 2008 17:54:23 +0000 Subject: [PATCH] Delete unused variable --- src/playlist/control.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/playlist/control.c b/src/playlist/control.c index 781b73e747..b6a2f32480 100644 --- a/src/playlist/control.c +++ b/src/playlist/control.c @@ -299,11 +299,9 @@ void ResetCurrentlyPlaying( playlist_t *p_playlist, vlc_bool_t b_random, { /* Shuffle the array */ srand( (unsigned int)mdate() ); - int swap = 0; int j; for( j = p_playlist->current.i_size - 1; j > 0; j-- ) { - swap++; int i = rand() % (j+1); /* between 0 and j */ playlist_item_t *p_tmp; p_tmp = ARRAY_VAL(p_playlist->current, i); -- 2.39.2