PlaylistError: remove unused code "ERRNO"

This commit is contained in:
Max Kellermann 2015-11-11 19:50:57 +01:00
parent 76a9049739
commit 2e55d561d3
2 changed files with 0 additions and 5 deletions

View File

@ -24,7 +24,6 @@ class Domain;
enum class PlaylistResult {
SUCCESS,
ERRNO,
DENIED,
NO_SUCH_SONG,
NO_SUCH_LIST,

View File

@ -36,10 +36,6 @@ print_playlist_result(Response &r, PlaylistResult result)
case PlaylistResult::SUCCESS:
return CommandResult::OK;
case PlaylistResult::ERRNO:
r.Error(ACK_ERROR_SYSTEM, strerror(errno));
return CommandResult::ERROR;
case PlaylistResult::DENIED:
r.Error(ACK_ERROR_PERMISSION, "Access denied");
return CommandResult::ERROR;