diff options
author | Max Kellermann <max@duempel.org> | 2012-08-08 21:44:18 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-08 22:28:49 +0200 |
commit | fa84ed412db4cc033989d1b60535dd6207e1ff23 (patch) | |
tree | 0a652bea92db2de7c83fb05a646d06852dc72ef7 /src/player_control.c | |
parent | 16951099d1154bee369aec1437fa85ecb1c3218e (diff) | |
download | mpd-fa84ed412db4cc033989d1b60535dd6207e1ff23.tar.gz mpd-fa84ed412db4cc033989d1b60535dd6207e1ff23.tar.xz mpd-fa84ed412db4cc033989d1b60535dd6207e1ff23.zip |
player_control: remove unused enum player_error values
Diffstat (limited to '')
-rw-r--r-- | src/player_control.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/player_control.c b/src/player_control.c index 9201202a3..1ea7adea8 100644 --- a/src/player_control.c +++ b/src/player_control.c @@ -253,12 +253,6 @@ pc_get_error_message(struct player_control *pc) case PLAYER_ERROR_NOERROR: return NULL; - case PLAYER_ERROR_FILENOTFOUND: - uri = pc_errored_song_uri(pc); - error = g_strdup_printf("file \"%s\" does not exist or is inaccessible", uri); - g_free(uri); - return error; - case PLAYER_ERROR_FILE: uri = pc_errored_song_uri(pc); error = g_strdup_printf("problems decoding \"%s\"", uri); @@ -267,15 +261,6 @@ pc_get_error_message(struct player_control *pc) case PLAYER_ERROR_AUDIO: return g_strdup("problems opening audio device"); - - case PLAYER_ERROR_SYSTEM: - return g_strdup("system error occurred"); - - case PLAYER_ERROR_UNKTYPE: - uri = pc_errored_song_uri(pc); - error = g_strdup_printf("file type of \"%s\" is unknown", uri); - g_free(uri); - return error; } assert(false); |