Commit fb282423 authored by Rémi Duraffort's avatar Rémi Duraffort

Delete unused variable

parent 7def690c
...@@ -299,11 +299,9 @@ void ResetCurrentlyPlaying( playlist_t *p_playlist, vlc_bool_t b_random, ...@@ -299,11 +299,9 @@ void ResetCurrentlyPlaying( playlist_t *p_playlist, vlc_bool_t b_random,
{ {
/* Shuffle the array */ /* Shuffle the array */
srand( (unsigned int)mdate() ); srand( (unsigned int)mdate() );
int swap = 0;
int j; int j;
for( j = p_playlist->current.i_size - 1; j > 0; j-- ) for( j = p_playlist->current.i_size - 1; j > 0; j-- )
{ {
swap++;
int i = rand() % (j+1); /* between 0 and j */ int i = rand() % (j+1); /* between 0 and j */
playlist_item_t *p_tmp; playlist_item_t *p_tmp;
p_tmp = ARRAY_VAL(p_playlist->current, i); p_tmp = ARRAY_VAL(p_playlist->current, i);
......
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