mdp: remove GetCurrentlyPlayingSongPos
This commit is contained in:
@@ -551,12 +551,12 @@ void Connection::Seek(unsigned where)
|
||||
if (!isCommandsListEnabled)
|
||||
{
|
||||
GoBusy();
|
||||
mpd_run_seek_pos(itsConnection, Mpd.GetCurrentlyPlayingSongPos(), where);
|
||||
mpd_run_seek_pos(itsConnection, Mpd.GetCurrentSongPos(), where);
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(!isIdle);
|
||||
mpd_send_seek_pos(itsConnection, Mpd.GetCurrentlyPlayingSongPos(), where);
|
||||
mpd_send_seek_pos(itsConnection, Mpd.GetCurrentSongPos(), where);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -695,11 +695,6 @@ int Connection::GetCurrentSongPos() const
|
||||
return itsCurrentStatus ? mpd_status_get_song_pos(itsCurrentStatus) : -1;
|
||||
}
|
||||
|
||||
int Connection::GetCurrentlyPlayingSongPos() const
|
||||
{
|
||||
return isPlaying() ? GetCurrentSongPos() : -1;
|
||||
}
|
||||
|
||||
Song Connection::GetCurrentlyPlayingSong()
|
||||
{
|
||||
assert(!isCommandsListEnabled);
|
||||
|
||||
Reference in New Issue
Block a user