summaryrefslogtreecommitdiff
path: root/src/PlaylistFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-24 21:34:07 +0100
committerMax Kellermann <max@duempel.org>2015-03-24 22:03:17 +0100
commit8c9c3a91e6374b133376057e6a7f2d4e5afe6af1 (patch)
tree88455070ecfafa1fd6605af0f9300239ae43815d /src/PlaylistFile.cxx
parent7f3518333d514421c706c4b5916a117eb914342e (diff)
PlaylistFile: eliminate redundant spl_map() calls
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r--src/PlaylistFile.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index 1123f00ba..ed1040a14 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -225,9 +225,6 @@ SavePlaylistFile(const PlaylistFileContents &contents, const char *utf8path,
{
assert(utf8path != nullptr);
- if (spl_map(error).IsNull())
- return false;
-
const auto path_fs = spl_map_to_fs(utf8path, error);
if (path_fs.IsNull())
return false;
@@ -250,9 +247,6 @@ LoadPlaylistFile(const char *utf8path, Error &error)
{
PlaylistFileContents contents;
- if (spl_map(error).IsNull())
- return contents;
-
const auto path_fs = spl_map_to_fs(utf8path, error);
if (path_fs.IsNull())
return contents;
@@ -345,9 +339,6 @@ spl_move_index(const char *utf8path, unsigned src, unsigned dest,
bool
spl_clear(const char *utf8path, Error &error)
{
- if (spl_map(error).IsNull())
- return false;
-
const auto path_fs = spl_map_to_fs(utf8path, error);
if (path_fs.IsNull())
return false;
@@ -404,9 +395,6 @@ spl_remove_index(const char *utf8path, unsigned pos, Error &error)
bool
spl_append_song(const char *utf8path, const DetachedSong &song, Error &error)
{
- if (spl_map(error).IsNull())
- return false;
-
const auto path_fs = spl_map_to_fs(utf8path, error);
if (path_fs.IsNull())
return false;
@@ -481,9 +469,6 @@ spl_rename_internal(Path from_path_fs, Path to_path_fs,
bool
spl_rename(const char *utf8from, const char *utf8to, Error &error)
{
- if (spl_map(error).IsNull())
- return false;
-
const auto from_path_fs = spl_map_to_fs(utf8from, error);
if (from_path_fs.IsNull())
return false;