aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_state.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/playlist_state.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/playlist_state.c b/src/playlist_state.c
index d62aa3f85..b0f99dd05 100644
--- a/src/playlist_state.c
+++ b/src/playlist_state.c
@@ -101,8 +101,6 @@ playlist_state_save(FILE *fp, const struct playlist *playlist)
static void
playlist_state_load(FILE *fp, GString *buffer, struct playlist *playlist)
{
- int song;
-
const char *line = read_text_line(fp, buffer);
if (line == NULL) {
g_warning("No playlist in state file");
@@ -110,7 +108,7 @@ playlist_state_load(FILE *fp, GString *buffer, struct playlist *playlist)
}
while (!g_str_has_prefix(line, PLAYLIST_STATE_FILE_PLAYLIST_END)) {
- song = queue_load_song(&playlist->queue, line);
+ queue_load_song(&playlist->queue, line);
line = read_text_line(fp, buffer);
if (line == NULL) {