summaryrefslogtreecommitdiff
path: root/src/SongUpdate.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-07 21:39:47 +0100
committerMax Kellermann <max@duempel.org>2014-01-09 09:05:58 +0100
commit322b0616322760dc162447563d8f4da7e024ca90 (patch)
tree2f87cb3ce061556161797aba9f57ee08de5b9e21 /src/SongUpdate.cxx
parent43847f2244a34064af24704aac4cfad4a3c76f7d (diff)
DetachedSong: fork of struct Song
From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead.
Diffstat (limited to 'src/SongUpdate.cxx')
-rw-r--r--src/SongUpdate.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx
index 953c23961..cba3c6957 100644
--- a/src/SongUpdate.cxx
+++ b/src/SongUpdate.cxx
@@ -78,8 +78,6 @@ tag_scan_fallback(Path path,
bool
Song::UpdateFile()
{
- assert(IsFile());
-
const auto path_fs = map_song_fs(*this);
if (path_fs.IsNull())
return false;
@@ -107,13 +105,9 @@ Song::UpdateFile()
bool
Song::UpdateFileInArchive()
{
- const char *suffix;
-
- assert(IsFile());
-
/* check if there's a suffix and a plugin */
- suffix = uri_get_suffix(uri);
+ const char *suffix = uri_get_suffix(uri);
if (suffix == nullptr)
return false;