summaryrefslogtreecommitdiff
path: root/src/mpdpp.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-18 21:34:14 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-18 21:34:14 +0200
commitb57428db90abb440379c69c6d0324276c7407c4f (patch)
treebe3523fa70ff4cea6a5ebd37a03d1d75f0940304 /src/mpdpp.cpp
parente108604641775e620506e97137d49c46ae0c1087 (diff)
mdp: remove GetCurrentlyPlayingSongPos
Diffstat (limited to 'src/mpdpp.cpp')
-rw-r--r--src/mpdpp.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp
index f137c280..71233bef 100644
--- a/src/mpdpp.cpp
+++ b/src/mpdpp.cpp
@@ -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);