From 501f1e6de005eaa7e8937b85ebb6d3691326ac97 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Jan 2014 21:44:16 +0100 Subject: [PATCH] PlaylistSong: remove the IsInDatabase() check No caller passes a database song to this function, but if he does, this check doesn't make sense. --- src/PlaylistSong.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/PlaylistSong.cxx b/src/PlaylistSong.cxx index 03dfd4174..3366559d5 100644 --- a/src/PlaylistSong.cxx +++ b/src/PlaylistSong.cxx @@ -99,10 +99,6 @@ DetachedSong * playlist_check_translate_song(DetachedSong *song, const char *base_uri, bool secure) { - if (song->IsInDatabase()) - /* already ok */ - return song; - const char *uri = song->GetURI(); if (uri_has_scheme(uri)) {