summaryrefslogtreecommitdiff
path: root/src/queue/PlaylistEdit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue/PlaylistEdit.cxx')
-rw-r--r--src/queue/PlaylistEdit.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/queue/PlaylistEdit.cxx b/src/queue/PlaylistEdit.cxx
index ccfbe85a6..e562fd02e 100644
--- a/src/queue/PlaylistEdit.cxx
+++ b/src/queue/PlaylistEdit.cxx
@@ -124,13 +124,9 @@ playlist::AppendSong(PlayerControl &pc, DetachedSong &&song)
unsigned
playlist::AppendURI(PlayerControl &pc, const SongLoader &loader,
- const char *uri,
- Error &error)
+ const char *uri)
{
- std::unique_ptr<DetachedSong> song(loader.LoadSong(uri, error));
- if (song == nullptr)
- return 0;
-
+ std::unique_ptr<DetachedSong> song(loader.LoadSong(uri));
return AppendSong(pc, std::move(*song));
}