diff options
Diffstat (limited to 'firmware/playlist.c')
-rw-r--r-- | firmware/playlist.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/firmware/playlist.c b/firmware/playlist.c index 2554ed3d31..acea68cad6 100644 --- a/firmware/playlist.c +++ b/firmware/playlist.c | |||
@@ -189,37 +189,6 @@ void randomise_playlist( playlist_info_t *playlist, unsigned int seed ) | |||
189 | } | 189 | } |
190 | 190 | ||
191 | /* | 191 | /* |
192 | * check if random number has been used previously | ||
193 | */ | ||
194 | int is_unused_random_in_list( int number, int *new_list, int count ) | ||
195 | { | ||
196 | int i = 0; | ||
197 | int *p = new_list; | ||
198 | |||
199 | /* examine all in list */ | ||
200 | |||
201 | while( i < count ) | ||
202 | { | ||
203 | /* did we find the number in the list already? */ | ||
204 | |||
205 | if( p[i] == number ) | ||
206 | { | ||
207 | /* yes - return false */ | ||
208 | |||
209 | return 0; | ||
210 | } | ||
211 | |||
212 | /* move along list */ | ||
213 | |||
214 | i++; | ||
215 | } | ||
216 | |||
217 | /* if we got here, we didn't find the number. return true */ | ||
218 | |||
219 | return 1; | ||
220 | } | ||
221 | |||
222 | /* | ||
223 | * dump the details of a track to stdout | 192 | * dump the details of a track to stdout |
224 | */ | 193 | */ |
225 | void display_playlist_track( track_t *track ) | 194 | void display_playlist_track( track_t *track ) |