mdp: remove GetCurrentlyPlayingSongPos

This commit is contained in:
Andrzej Rybczak
2012-09-18 21:34:14 +02:00
parent e108604641
commit b57428db90
7 changed files with 10 additions and 16 deletions

View File

@@ -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);