PlaylistSong: remove redundant "secure" check

This has been verified already in the caller.
This commit is contained in:
Max Kellermann 2014-01-20 23:58:44 +01:00
parent 82b4ec22be
commit c727c86245
1 changed files with 3 additions and 3 deletions

View File

@ -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;