PlaylistSong: remove redundant "secure" check
This has been verified already in the caller.
This commit is contained in:
parent
82b4ec22be
commit
c727c86245
|
@ -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,
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue