Remove encoding error and redundant code

This commit is contained in:
Age Manning
2019-07-24 15:17:44 +10:00
parent 89ff7fb6b8
commit 7d38cba252
4 changed files with 0 additions and 246 deletions

View File

@@ -196,7 +196,6 @@ pub enum RPCResponse {
#[derive(Debug)]
pub enum RPCErrorResponse {
Success(RPCResponse),
EncodingError,
InvalidRequest(ErrorMessage),
ServerError(ErrorMessage),
Unknown(ErrorMessage),
@@ -207,7 +206,6 @@ impl RPCErrorResponse {
pub fn as_u8(&self) -> u8 {
match self {
RPCErrorResponse::Success(_) => 0,
RPCErrorResponse::EncodingError => 1,
RPCErrorResponse::InvalidRequest(_) => 2,
RPCErrorResponse::ServerError(_) => 3,
RPCErrorResponse::Unknown(_) => 255,