diff options
author | Max Kellermann <max@duempel.org> | 2014-01-07 21:39:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-09 09:05:58 +0100 |
commit | 322b0616322760dc162447563d8f4da7e024ca90 (patch) | |
tree | 2f87cb3ce061556161797aba9f57ee08de5b9e21 /src/SongSticker.cxx | |
parent | 43847f2244a34064af24704aac4cfad4a3c76f7d (diff) | |
download | mpd-322b0616322760dc162447563d8f4da7e024ca90.tar.gz mpd-322b0616322760dc162447563d8f4da7e024ca90.tar.xz mpd-322b0616322760dc162447563d8f4da7e024ca90.zip |
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 '')
-rw-r--r-- | src/SongSticker.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/SongSticker.cxx b/src/SongSticker.cxx index 88bea1501..b17820fd5 100644 --- a/src/SongSticker.cxx +++ b/src/SongSticker.cxx @@ -31,8 +31,6 @@ std::string sticker_song_get_value(const Song &song, const char *name) { - assert(song.IsInDatabase()); - const auto uri = song.GetURI(); return sticker_load_value("song", uri.c_str(), name); } @@ -41,8 +39,6 @@ bool sticker_song_set_value(const Song &song, const char *name, const char *value) { - assert(song.IsInDatabase()); - const auto uri = song.GetURI(); return sticker_store_value("song", uri.c_str(), name, value); } @@ -50,8 +46,6 @@ sticker_song_set_value(const Song &song, bool sticker_song_delete(const Song &song) { - assert(song.IsInDatabase()); - const auto uri = song.GetURI(); return sticker_delete("song", uri.c_str()); } @@ -59,8 +53,6 @@ sticker_song_delete(const Song &song) bool sticker_song_delete_value(const Song &song, const char *name) { - assert(song.IsInDatabase()); - const auto uri = song.GetURI(); return sticker_delete_value("song", uri.c_str(), name); } @@ -68,8 +60,6 @@ sticker_song_delete_value(const Song &song, const char *name) struct sticker * sticker_song_get(const Song &song) { - assert(song.IsInDatabase()); - const auto uri = song.GetURI(); return sticker_load("song", uri.c_str()); } |