changeset 4863:4cfb5217560a

Stop assigning node, the variable is unused. Removes need for node and one PLAYLIST_LOCK/UNLOCK pair. From code analysis, unique ID 99OFUU.
author Tony Vroon <chainsaw@gentoo.org>
date Sun, 19 Apr 2009 23:39:14 +0100
parents 7ec3621a9f9b
children 8eee8ee21025
files src/audlegacy/playlist.c
diffstat 1 files changed, 0 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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)