summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-05 11:22:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-05 11:22:32 +0000
commit03b78866f1f6b86873fec2feaf323d46f413415c (patch)
tree4195d16f93c9b8a0171a31e0a47a954de0bdf151
parent09552db910bed752d1ffd696070df97f15db9abd (diff)
downloadrockbox-03b78866f1f6b86873fec2feaf323d46f413415c.zip
rockbox-03b78866f1f6b86873fec2feaf323d46f413415c.tar.gz
rockbox-03b78866f1f6b86873fec2feaf323d46f413415c.tar.bz2
rockbox-03b78866f1f6b86873fec2feaf323d46f413415c.tar.xz
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
-rw-r--r--firmware/playlist.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/firmware/playlist.c b/firmware/playlist.c
index 2554ed3..acea68c 100644
--- a/firmware/playlist.c
+++ b/firmware/playlist.c
@@ -189,37 +189,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
*/
void display_playlist_track( track_t *track )