summaryrefslogtreecommitdiff
path: root/src/PlaylistFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-12-29 12:41:45 +0100
committerMax Kellermann <max@duempel.org>2015-12-29 12:56:26 +0100
commitf3503e00264aaf5adb298c651f101c83d97600ef (patch)
tree2fd740a0bfa69407b60a9f5a6a909b3a81e4fb27 /src/PlaylistFile.cxx
parent826a654c95c962c88f7eb803b50f6fd51504d273 (diff)
fs/DirectoryReader: use C++ exceptions instead of class Error
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r--src/PlaylistFile.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index 0bd17b2a2..196641289 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -174,7 +174,7 @@ LoadPlaylistFileInfo(PlaylistInfo &info,
}
PlaylistVector
-ListPlaylistFiles(Error &error)
+ListPlaylistFiles()
{
PlaylistVector list;
@@ -182,10 +182,6 @@ ListPlaylistFiles(Error &error)
assert(!parent_path_fs.IsNull());
DirectoryReader reader(parent_path_fs);
- if (reader.HasFailed()) {
- error.SetErrno();
- return list;
- }
PlaylistInfo info;
while (reader.ReadEntry()) {