aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-20 23:58:44 +0100
committerMax Kellermann <max@duempel.org>2014-01-21 00:28:32 +0100
commitc727c86245ddbf1052023c3dba82b2020836e4ff (patch)
treee573d41451e6eaf7addd00095e0ff7163b609737 /src
parent82b4ec22bee73966a29eb126024c9c337a3d4755 (diff)
downloadmpd-c727c86245ddbf1052023c3dba82b2020836e4ff.tar.gz
mpd-c727c86245ddbf1052023c3dba82b2020836e4ff.tar.xz
mpd-c727c86245ddbf1052023c3dba82b2020836e4ff.zip
PlaylistSong: remove redundant "secure" check
This has been verified already in the caller.
Diffstat (limited to 'src')
-rw-r--r--src/PlaylistSong.cxx6
1 files 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;