using the new randomiser, this is_unused_random_in_list() function is not
used anymore git-svn-id: svn://svn.rockbox.org/rockbox/trunk@441 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09552db910
commit
03b78866f1
1 changed files with 0 additions and 31 deletions
|
@ -188,37 +188,6 @@ void randomise_playlist( playlist_info_t *playlist, unsigned int seed )
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* check if random number has been used previously
|
||||
*/
|
||||
int is_unused_random_in_list( int number, int *new_list, int count )
|
||||
{
|
||||
int i = 0;
|
||||
int *p = new_list;
|
||||
|
||||
/* examine all in list */
|
||||
|
||||
while( i < count )
|
||||
{
|
||||
/* did we find the number in the list already? */
|
||||
|
||||
if( p[i] == number )
|
||||
{
|
||||
/* yes - return false */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* move along list */
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
/* if we got here, we didn't find the number. return true */
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* dump the details of a track to stdout
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue