Commit c727c862 authored by Max Kellermann's avatar Max Kellermann

PlaylistSong: remove redundant "secure" check

This has been verified already in the caller.
parent 82b4ec22
...@@ -74,13 +74,13 @@ apply_song_metadata(DetachedSong *dest, const DetachedSong &src) ...@@ -74,13 +74,13 @@ apply_song_metadata(DetachedSong *dest, const DetachedSong &src)
} }
static DetachedSong * 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; DetachedSong *dest;
if (uri_has_scheme(uri)) { if (uri_has_scheme(uri)) {
dest = new DetachedSong(uri); dest = new DetachedSong(uri);
} else if (PathTraitsUTF8::IsAbsolute(uri) && secure) { } else if (PathTraitsUTF8::IsAbsolute(uri)) {
dest = new DetachedSong(uri); dest = new DetachedSong(uri);
if (!dest->Update()) { if (!dest->Update()) {
delete dest; delete dest;
...@@ -142,7 +142,7 @@ playlist_check_translate_song(DetachedSong *song, const char *base_uri, ...@@ -142,7 +142,7 @@ playlist_check_translate_song(DetachedSong *song, const char *base_uri,
return playlist_check_translate_song(song, nullptr, secure); 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; delete song;
return dest; return dest;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment