Code

mpdclient: don't call screen_status_message()
authorMax Kellermann <max@duempel.org>
Sun, 21 Sep 2008 11:50:35 +0000 (13:50 +0200)
committerMax Kellermann <max@duempel.org>
Sun, 21 Sep 2008 11:50:35 +0000 (13:50 +0200)
The caller should decide how to display error messages.

src/mpdclient.c

index 6d9d72b9c206789e6694400783397f8b13553ba1..5699e0760275307a680f75490c99da2439dc2daa 100644 (file)
@@ -311,7 +311,6 @@ mpdclient_cmd_crop(mpdclient_t *c)
 
        if (length <= 0) {
                mpd_freeStatus(status);
-               screen_status_message("You have to have a playlist longer than 1 song in length to crop");
        } else if (status->state == 3 || status->state == 2) {
                /* If playing or paused */
 
@@ -328,7 +327,6 @@ mpdclient_cmd_crop(mpdclient_t *c)
                mpd_freeStatus(status);
        } else {
                mpd_freeStatus(status);
-               screen_status_message("You need to be playing to crop the playlist\n");
        }
 
        return mpdclient_finish_command(c);