queue/Playlist: rename DeleteSong() to StaleSong()
This commit is contained in:
@@ -237,7 +237,13 @@ public:
|
||||
*/
|
||||
void DeleteRange(PlayerControl &pc, unsigned start, unsigned end);
|
||||
|
||||
void DeleteSong(PlayerControl &pc, const char *uri);
|
||||
/**
|
||||
* Mark the given song as "stale", i.e. as not being available
|
||||
* anymore. This gets called when a song is removed from the
|
||||
* database. The method attempts to remove all instances of
|
||||
* this song from the queue.
|
||||
*/
|
||||
void StaleSong(PlayerControl &pc, const char *uri);
|
||||
|
||||
void Shuffle(PlayerControl &pc, unsigned start, unsigned end);
|
||||
|
||||
|
@@ -310,7 +310,7 @@ playlist::DeleteId(PlayerControl &pc, unsigned id)
|
||||
}
|
||||
|
||||
void
|
||||
playlist::DeleteSong(PlayerControl &pc, const char *uri)
|
||||
playlist::StaleSong(PlayerControl &pc, const char *uri)
|
||||
{
|
||||
for (int i = queue.GetLength() - 1; i >= 0; --i)
|
||||
if (queue.Get(i).IsURI(uri))
|
||||
|
Reference in New Issue
Block a user