From 72c40d5fcd672a0602e13992396e3a2cfe0a6d69 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Sat, 10 Nov 2018 23:37:17 -0800 Subject: [PATCH] Removed unused errors --- src/errors.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 31493b3..b9aa910 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -37,24 +37,11 @@ error_chain! { errors { DaemonError {} - AuthenticationRequired {} - AdminPrivilegeRequired {} - MissingConfig {} - MissingPreferences {} - MissingUsername {} - MissingPassword {} - MissingPlaylist {} IncorrectCredentials {} - CannotServeDirectory {} - UnsupportedFileType {} - FileNotFound {} - MissingIndexVersion {} - MissingPlaylistName {} EncodingError {} MissingLastFMCredentials {} LastFMAuthError {} LastFMDeserializationError {} - MissingDesiredResponse {} } } @@ -63,7 +50,6 @@ impl<'r> rocket::response::Responder<'r> for Error { let mut build = rocket::response::Response::build(); build .status(match self.0 { - ErrorKind::FileNotFound => rocket::http::Status::NotFound, ErrorKind::IncorrectCredentials => rocket::http::Status::Unauthorized, _ => rocket::http::Status::InternalServerError, })