aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-20 21:44:16 +0100
committerMax Kellermann <max@duempel.org>2014-01-20 23:32:03 +0100
commit501f1e6de005eaa7e8937b85ebb6d3691326ac97 (patch)
tree6b4d09eb3021fd1f406678b53340dabfb172ec57
parent414d5b648ccc6147d1c6f114b2d48fa557033ca0 (diff)
downloadmpd-501f1e6de005eaa7e8937b85ebb6d3691326ac97.tar.gz
mpd-501f1e6de005eaa7e8937b85ebb6d3691326ac97.tar.xz
mpd-501f1e6de005eaa7e8937b85ebb6d3691326ac97.zip
PlaylistSong: remove the IsInDatabase() check
No caller passes a database song to this function, but if he does, this check doesn't make sense.
-rw-r--r--src/PlaylistSong.cxx4
1 files changed, 0 insertions, 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)) {