# HG changeset patch # User Tony Vroon # Date 1240180754 -3600 # Node ID 4cfb5217560a07f5b2a28e439e68cd0a90b2015a # Parent 7ec3621a9f9bd5f70a8c93c83e3795acef1ef085 Stop assigning node, the variable is unused. Removes need for node and one PLAYLIST_LOCK/UNLOCK pair. From code analysis, unique ID 99OFUU. diff -r 7ec3621a9f9b -r 4cfb5217560a src/audlegacy/playlist.c --- a/src/audlegacy/playlist.c Sun Apr 19 23:26:48 2009 +0100 +++ b/src/audlegacy/playlist.c Sun Apr 19 23:39:14 2009 +0100 @@ -1080,7 +1080,6 @@ g_return_val_if_fail(string != NULL, 0); while (*string) { - GList *node; guint i = 0; tmp = strchr(string, '\n'); if (tmp) { @@ -1100,10 +1099,6 @@ g_free(decoded); - PLAYLIST_LOCK(playlist); - node = g_list_nth(playlist->entries, pos); - PLAYLIST_UNLOCK(playlist); - entries += i; if (pos >= 0)