db/simple/Directory: eliminate method LookupSong()
Move to SimpleDatabase::GetSong() to give that method more control.
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user