Code

mpdclient: removed mpdclient_cmd_play()
[ncmpc.git] / src / mpdclient.c
index 748baed5c1e99d42470254ea39240dcf3ff09753..dbe931c7d66e8bdc61a09e7007661eb7966ec875 100644 (file)
@@ -261,23 +261,6 @@ mpdclient_put_connection(struct mpdclient *c)
 /*** MPD Commands  **********************************************************/
 /****************************************************************************/
 
-bool
-mpdclient_cmd_play(struct mpdclient *c, gint idx)
-{
-       struct mpd_connection *connection = mpdclient_get_connection(c);
-       const struct mpd_song *song = playlist_get_song(&c->playlist, idx);
-
-       if (connection == NULL)
-               return false;
-
-       if (song)
-               mpd_send_play_id(connection, mpd_song_get_id(song));
-       else
-               mpd_send_play(connection);
-
-       return mpdclient_finish_command(c);
-}
-
 bool
 mpdclient_cmd_crop(struct mpdclient *c)
 {