diff options
author | Max Kellermann <max@duempel.org> | 2010-07-25 12:43:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-07-25 12:43:18 +0200 |
commit | 63c9a20f96dff970cfbc76f2eebc6162abd056f6 (patch) | |
tree | f124f1033b92af87c9b98bbd7af6be3dee47cb9e /src/playlist_state.c | |
parent | b40c0811f4b9caba5e91dd829da1641fdbb3a890 (diff) | |
download | mpd-63c9a20f96dff970cfbc76f2eebc6162abd056f6.tar.gz mpd-63c9a20f96dff970cfbc76f2eebc6162abd056f6.tar.xz mpd-63c9a20f96dff970cfbc76f2eebc6162abd056f6.zip |
queue_save: queue_load_song() returns void
The only caller doesn't use its return value, and the value isn't
useful anyway.
Diffstat (limited to '')
-rw-r--r-- | src/playlist_state.c | 4 |
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) { |