From be3b5199b02fb2c0e1b5c3fe64e7a67e6ad041d7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Dec 2010 22:25:02 +0100 Subject: [PATCH] stored_playlist: remove database lookups from spl_load() Don't look up songs in the database, no caller needs this. --- src/stored_playlist.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/stored_playlist.c b/src/stored_playlist.c index 36da7c9f7..c75c00727 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -204,18 +204,12 @@ spl_load(const char *utf8path) if (!uri_has_scheme(s)) { char *path_utf8; - struct song *song; path_utf8 = map_fs_to_utf8(s); if (path_utf8 == NULL) continue; - song = db_get_song(path_utf8); - g_free(path_utf8); - if (song == NULL) - continue; - - s = song_get_uri(song); + s = path_utf8; } else s = g_strdup(s);