db/Simple: remove unused function db_get_directory()
This commit is contained in:
parent
9c637df77e
commit
33a2c01ea2
@ -23,7 +23,6 @@
|
|||||||
#include "db/DatabaseLock.hxx"
|
#include "db/DatabaseLock.hxx"
|
||||||
#include "db/DatabasePlugin.hxx"
|
#include "db/DatabasePlugin.hxx"
|
||||||
#include "db/DatabaseGlue.hxx"
|
#include "db/DatabaseGlue.hxx"
|
||||||
#include "db/DatabaseSimple.hxx"
|
|
||||||
#include "sticker/SongSticker.hxx"
|
#include "sticker/SongSticker.hxx"
|
||||||
#include "sticker/StickerPrint.hxx"
|
#include "sticker/StickerPrint.hxx"
|
||||||
#include "sticker/StickerDatabase.hxx"
|
#include "sticker/StickerDatabase.hxx"
|
||||||
|
@ -104,19 +104,6 @@ db_get_root(void)
|
|||||||
return ((SimpleDatabase *)db)->GetRoot();
|
return ((SimpleDatabase *)db)->GetRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
Directory *
|
|
||||||
db_get_directory(const char *name)
|
|
||||||
{
|
|
||||||
if (db == nullptr)
|
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
Directory *music_root = db_get_root();
|
|
||||||
if (name == nullptr)
|
|
||||||
return music_root;
|
|
||||||
|
|
||||||
return music_root->LookupDirectory(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
db_save(Error &error)
|
db_save(Error &error)
|
||||||
{
|
{
|
||||||
|
@ -48,14 +48,6 @@ gcc_pure
|
|||||||
Directory *
|
Directory *
|
||||||
db_get_root(void);
|
db_get_root(void);
|
||||||
|
|
||||||
/**
|
|
||||||
* Caller must lock the #db_mutex.
|
|
||||||
*/
|
|
||||||
gcc_nonnull(1)
|
|
||||||
gcc_pure
|
|
||||||
Directory *
|
|
||||||
db_get_directory(const char *name);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* May only be used if db_is_simple() returns true.
|
* May only be used if db_is_simple() returns true.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user