From c727c86245ddbf1052023c3dba82b2020836e4ff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Jan 2014 23:58:44 +0100 Subject: [PATCH] PlaylistSong: remove redundant "secure" check This has been verified already in the caller. --- src/PlaylistSong.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PlaylistSong.cxx b/src/PlaylistSong.cxx index 50f18abe9..beb2d186f 100644 --- a/src/PlaylistSong.cxx +++ b/src/PlaylistSong.cxx @@ -74,13 +74,13 @@ apply_song_metadata(DetachedSong *dest, const DetachedSong &src) } static DetachedSong * -playlist_check_load_song(const DetachedSong *song, const char *uri, bool secure) +playlist_check_load_song(const DetachedSong *song, const char *uri) { DetachedSong *dest; if (uri_has_scheme(uri)) { dest = new DetachedSong(uri); - } else if (PathTraitsUTF8::IsAbsolute(uri) && secure) { + } else if (PathTraitsUTF8::IsAbsolute(uri)) { dest = new DetachedSong(uri); if (!dest->Update()) { delete dest; @@ -142,7 +142,7 @@ playlist_check_translate_song(DetachedSong *song, const char *base_uri, return playlist_check_translate_song(song, nullptr, secure); } - DetachedSong *dest = playlist_check_load_song(song, uri, secure); + DetachedSong *dest = playlist_check_load_song(song, uri); delete song; return dest;