aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/simple/Directory.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-26 20:10:31 +0100
committerMax Kellermann <max@duempel.org>2014-02-26 20:10:31 +0100
commit21e19ef69f1ab6efb5d6647b4428c31cef5cde69 (patch)
tree5f459e05d03104168c9c62afc84c4a0293648e6f /src/db/plugins/simple/Directory.cxx
parent69a42fc901d06af2f90d7046e153dc1273f19beb (diff)
downloadmpd-21e19ef69f1ab6efb5d6647b4428c31cef5cde69.tar.gz
mpd-21e19ef69f1ab6efb5d6647b4428c31cef5cde69.tar.xz
mpd-21e19ef69f1ab6efb5d6647b4428c31cef5cde69.zip
db/simple/Directory: eliminate method LookupSong()
Move to SimpleDatabase::GetSong() to give that method more control.
Diffstat (limited to 'src/db/plugins/simple/Directory.cxx')
-rw-r--r--src/db/plugins/simple/Directory.cxx18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/db/plugins/simple/Directory.cxx b/src/db/plugins/simple/Directory.cxx
index a81021b47..b4255b0ac 100644
--- a/src/db/plugins/simple/Directory.cxx
+++ b/src/db/plugins/simple/Directory.cxx
@@ -202,24 +202,6 @@ Directory::FindSong(const char *name_utf8) const
return nullptr;
}
-Song *
-Directory::LookupSong(const char *uri)
-{
- assert(holding_db_lock());
- assert(uri != nullptr);
-
- auto r = LookupDirectory(uri);
- if (r.uri == nullptr)
- /* it's a directory */
- return nullptr;
-
- if (strchr(r.uri, '/') != nullptr)
- /* refers to a URI "below" the actual song */
- return nullptr;
-
- return r.directory->FindSong(r.uri);
-}
-
static int
directory_cmp(gcc_unused void *priv,
struct list_head *_a, struct list_head *_b)