chiark / gitweb /
errors: Abolish now-unused Fatal::PieceHeld
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 14:29:48 +0000 (15:29 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 14:35:10 +0000 (15:35 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/api.rs
src/error.rs

index cb38a79f81eec7bfe9e7010fd66c81484d5d772b..ebf9f03d971f62319944facacbe425b94136daff 100644 (file)
@@ -76,7 +76,6 @@ impl From<&FatalErrorResponse> for rocket::http::Status {
       ServerFailure(_) => Status::InternalServerError,
       NoClient | NoPlayer(_) | GameBeingDestroyed(_)
         => Status::NotFound,
-      OE::PieceHeld |
       BadJSON(_)
         => Status::BadRequest,
     }
index cee5b7cff7a1100d9da0ea73270f4cee4f7b7d15..0ee5933210a45c5bcd224ca0c3469c88d2f8a5d0 100644 (file)
@@ -16,8 +16,6 @@ pub enum Fatal { // Includes _bogus_ client updates, see PROTOCOL.md
   ServerFailure(#[from] InternalError),
   #[error("JSON deserialisation error: {0}")]
   BadJSON(serde_json::Error),
-  #[error("referenced piece is gone (maybe race)")]
-  PieceHeld, // xxx should be _inapplicable_
 }
 
 #[derive(Error,Debug)]