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

index 3fc6c3481269cc32b4ba3a6ba49d4231fa538472..65ca3a550047ce9532c17d401df2c982850ba9c0 100644 (file)
@@ -76,7 +76,7 @@ impl From<&FatalErrorResponse> for rocket::http::Status {
       ServerFailure(_) => Status::InternalServerError,
       NoClient | NoPlayer(_) | GameBeingDestroyed(_)
         => Status::NotFound,
-      OE::PieceHeld | OE::PieceImmoveable |
+      OE::PieceHeld |
       BadJSON(_)
         => Status::BadRequest,
     }
index 5f0d73d0e1caa44c4fd5135ab47a05ae3acb98ec..cee5b7cff7a1100d9da0ea73270f4cee4f7b7d15 100644 (file)
@@ -18,8 +18,6 @@ pub enum Fatal { // Includes _bogus_ client updates, see PROTOCOL.md
   BadJSON(serde_json::Error),
   #[error("referenced piece is gone (maybe race)")]
   PieceHeld, // xxx should be _inapplicable_
-  #[error("improper UI operation")]
-  PieceImmoveable, // xxx should be _inapplicable_
 }
 
 #[derive(Error,Debug)]