aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 09:03:17 +0100
committerMax Kellermann <max@duempel.org>2014-02-04 09:03:17 +0100
commit33a2c01ea2e6c06922eb0ce6a8f08760206138b4 (patch)
tree6ce2cae90d50bd9aef7ecd5f3ef33c7ec0b750ec
parent9c637df77ec245518922c5aeb076ae52c89598d0 (diff)
downloadmpd-33a2c01ea2e6c06922eb0ce6a8f08760206138b4.tar.gz
mpd-33a2c01ea2e6c06922eb0ce6a8f08760206138b4.tar.xz
mpd-33a2c01ea2e6c06922eb0ce6a8f08760206138b4.zip
db/Simple: remove unused function db_get_directory()
Diffstat (limited to '')
-rw-r--r--src/command/StickerCommands.cxx1
-rw-r--r--src/db/DatabaseGlue.cxx13
-rw-r--r--src/db/DatabaseSimple.hxx8
3 files changed, 0 insertions, 22 deletions
diff --git a/src/command/StickerCommands.cxx b/src/command/StickerCommands.cxx
index ee772475f..9e526b0e0 100644
--- a/src/command/StickerCommands.cxx
+++ b/src/command/StickerCommands.cxx
@@ -23,7 +23,6 @@
#include "db/DatabaseLock.hxx"
#include "db/DatabasePlugin.hxx"
#include "db/DatabaseGlue.hxx"
-#include "db/DatabaseSimple.hxx"
#include "sticker/SongSticker.hxx"
#include "sticker/StickerPrint.hxx"
#include "sticker/StickerDatabase.hxx"
diff --git a/src/db/DatabaseGlue.cxx b/src/db/DatabaseGlue.cxx
index 3734e156c..b8aae5be5 100644
--- a/src/db/DatabaseGlue.cxx
+++ b/src/db/DatabaseGlue.cxx
@@ -104,19 +104,6 @@ db_get_root(void)
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
db_save(Error &error)
{
diff --git a/src/db/DatabaseSimple.hxx b/src/db/DatabaseSimple.hxx
index b99b3bfa5..5d5680d43 100644
--- a/src/db/DatabaseSimple.hxx
+++ b/src/db/DatabaseSimple.hxx
@@ -49,14 +49,6 @@ Directory *
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.
*/
bool