From 03b78866f1f6b86873fec2feaf323d46f413415c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 5 May 2002 11:22:32 +0000 Subject: 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 --- firmware/playlist.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'firmware/playlist.c') diff --git a/firmware/playlist.c b/firmware/playlist.c index 2554ed3d31..acea68cad6 100644 --- a/firmware/playlist.c +++ b/firmware/playlist.c @@ -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 */ -- cgit v1.2.3