database.h: eliminate db_*_song()

Use the C++ API.
This commit is contained in:
Max Kellermann
2013-01-03 00:30:15 +01:00
parent fa3d1156a6
commit b4b0b34e5a
10 changed files with 102 additions and 142 deletions

View File

@@ -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)
{