diff options
author | Max Kellermann <max@duempel.org> | 2014-01-20 21:44:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-20 23:32:03 +0100 |
commit | 501f1e6de005eaa7e8937b85ebb6d3691326ac97 (patch) | |
tree | 6b4d09eb3021fd1f406678b53340dabfb172ec57 | |
parent | 414d5b648ccc6147d1c6f114b2d48fa557033ca0 (diff) | |
download | mpd-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.cxx | 4 |
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)) { |