queue_save: queue_load_song() returns void

The only caller doesn't use its return value, and the value isn't
useful anyway.
This commit is contained in:
Max Kellermann
2010-07-25 12:43:05 +02:00
parent b40c0811f4
commit 63c9a20f96
3 changed files with 7 additions and 11 deletions
+1 -3
View File
@@ -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) {