From 33a2c01ea2e6c06922eb0ce6a8f08760206138b4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 09:03:17 +0100 Subject: db/Simple: remove unused function db_get_directory() --- src/db/DatabaseGlue.cxx | 13 ------------- src/db/DatabaseSimple.hxx | 8 -------- 2 files changed, 21 deletions(-) (limited to 'src/db') 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 @@ -48,14 +48,6 @@ gcc_pure 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. */ -- cgit v1.2.3