Commit 2e55d561 authored by Max Kellermann's avatar Max Kellermann

PlaylistError: remove unused code "ERRNO"

parent 76a90497
...@@ -24,7 +24,6 @@ class Domain; ...@@ -24,7 +24,6 @@ class Domain;
enum class PlaylistResult { enum class PlaylistResult {
SUCCESS, SUCCESS,
ERRNO,
DENIED, DENIED,
NO_SUCH_SONG, NO_SUCH_SONG,
NO_SUCH_LIST, NO_SUCH_LIST,
......
...@@ -36,10 +36,6 @@ print_playlist_result(Response &r, PlaylistResult result) ...@@ -36,10 +36,6 @@ print_playlist_result(Response &r, PlaylistResult result)
case PlaylistResult::SUCCESS: case PlaylistResult::SUCCESS:
return CommandResult::OK; return CommandResult::OK;
case PlaylistResult::ERRNO:
r.Error(ACK_ERROR_SYSTEM, strerror(errno));
return CommandResult::ERROR;
case PlaylistResult::DENIED: case PlaylistResult::DENIED:
r.Error(ACK_ERROR_PERMISSION, "Access denied"); r.Error(ACK_ERROR_PERMISSION, "Access denied");
return CommandResult::ERROR; return CommandResult::ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment