comparison src/audlegacy/playlist.c @ 4864:8eee8ee21025

Remove declaration & assignment of numsongs, the variable is unused. From code analysis, unique ID q3QDmA.
author Tony Vroon <chainsaw@gentoo.org>
date Sun, 19 Apr 2009 23:43:13 +0100
parents 4cfb5217560a
children f51f043d5e4c
comparison
equal deleted inserted replaced
4863:4cfb5217560a 4864:8eee8ee21025
2401 2401
2402 static void 2402 static void
2403 playlist_generate_shuffle_list_nolock(Playlist *playlist) 2403 playlist_generate_shuffle_list_nolock(Playlist *playlist)
2404 { 2404 {
2405 GList *node; 2405 GList *node;
2406 gint numsongs;
2407 2406
2408 if (!cfg.shuffle || !playlist) 2407 if (!cfg.shuffle || !playlist)
2409 return; 2408 return;
2410 2409
2411 REQUIRE_LOCK(playlist->mutex); 2410 REQUIRE_LOCK(playlist->mutex);
2414 g_list_free(playlist->shuffle); 2413 g_list_free(playlist->shuffle);
2415 playlist->shuffle = NULL; 2414 playlist->shuffle = NULL;
2416 } 2415 }
2417 2416
2418 playlist->shuffle = playlist_shuffle_list(playlist, g_list_copy(playlist->entries)); 2417 playlist->shuffle = playlist_shuffle_list(playlist, g_list_copy(playlist->entries));
2419 numsongs = g_list_length(playlist->shuffle);
2420 2418
2421 if (playlist->position) { 2419 if (playlist->position) {
2422 gint i = g_list_index(playlist->shuffle, playlist->position); 2420 gint i = g_list_index(playlist->shuffle, playlist->position);
2423 node = g_list_nth(playlist->shuffle, i); 2421 node = g_list_nth(playlist->shuffle, i);
2424 playlist->shuffle = g_list_remove_link(playlist->shuffle, node); 2422 playlist->shuffle = g_list_remove_link(playlist->shuffle, node);