db/simple/Directory: eliminate method LookupSong()

Move to SimpleDatabase::GetSong() to give that method more control.
This commit is contained in:
Max Kellermann
2014-02-26 20:10:31 +01:00
parent 69a42fc901
commit 21e19ef69f
3 changed files with 19 additions and 30 deletions

View File

@@ -213,17 +213,6 @@ public:
return const_cast<Song *>(cthis->FindSong(name_utf8));
}
/**
* Looks up a song by its relative URI.
*
* Caller must lock the #db_mutex.
*
* @param uri the relative URI
* @return the song, or nullptr if none was found
*/
gcc_pure
Song *LookupSong(const char *uri);
/**
* Add a song object to this directory. Its "parent" attribute must
* be set already.