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

@@ -47,7 +47,6 @@ impl Encoder for SSZInboundCodec {
RPCResponse::BeaconChainState(res) => res.as_ssz_bytes(),
}
}
RPCErrorResponse::EncodingError => vec![],
RPCErrorResponse::InvalidRequest(err) => err.as_ssz_bytes(),
RPCErrorResponse::ServerError(err) => err.as_ssz_bytes(),
RPCErrorResponse::Unknown(err) => err.as_ssz_bytes(),