aboutsummaryrefslogtreecommitdiff
path: root/src/DatabaseGlue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 00:30:15 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 00:37:18 +0100
commitb4b0b34e5a131f02f723f40cf9566cc43e37cf85 (patch)
treec2afa49fe0b8f879a4c0c393e36916fde3c8ea8a /src/DatabaseGlue.cxx
parentfa3d1156a6bdbb8fab2a90e1716a1f152f7e8104 (diff)
database.h: eliminate db_*_song()
Use the C++ API.
Diffstat (limited to 'src/DatabaseGlue.cxx')
-rw-r--r--src/DatabaseGlue.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/DatabaseGlue.cxx b/src/DatabaseGlue.cxx
index 0b2bb0c3..e0f39f7b 100644
--- a/src/DatabaseGlue.cxx
+++ b/src/DatabaseGlue.cxx
@@ -131,28 +131,6 @@ db_get_directory(const char *name)
return music_root->LookupDirectory(name);
}
-struct song *
-db_get_song(const char *file)
-{
- assert(file != NULL);
-
- g_debug("get song: %s", file);
-
- if (db == NULL)
- return NULL;
-
- return db->GetSong(file, NULL);
-}
-
-void
-db_return_song(struct song *song)
-{
- assert(db != nullptr);
- assert(song != nullptr);
-
- db->ReturnSong(song);
-}
-
bool
db_save(GError **error_r)
{