From e20d5b639e48fd72cbea4387497dd287e12ee685 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Wed, 5 Feb 2020 16:18:28 +0100 Subject: [PATCH] just to make sure we don't screw up this again (#11455) --- ethcore/trace/src/types/trace.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/ethcore/trace/src/types/trace.rs b/ethcore/trace/src/types/trace.rs index 6fb1ed6e6..72bac5858 100644 --- a/ethcore/trace/src/types/trace.rs +++ b/ethcore/trace/src/types/trace.rs @@ -67,30 +67,6 @@ impl TryFrom for CallType { } } -impl Encodable for CallType { - fn rlp_append(&self, s: &mut RlpStream) { - let v = match *self { - CallType::Call => 0u32, - CallType::CallCode => 1, - CallType::DelegateCall => 2, - CallType::StaticCall => 3, - }; - Encodable::rlp_append(&v, s); - } -} - -impl Decodable for CallType { - fn decode(rlp: &Rlp) -> Result { - rlp.as_val().and_then(|v| Ok(match v { - 1u32 => CallType::Call, - 2 => CallType::CallCode, - 3 => CallType::DelegateCall, - 4 => CallType::StaticCall, - _ => return Err(DecoderError::Custom("Invalid value of CallType item")), - })) - } -} - /// `Create` result. #[derive(Debug, Clone, PartialEq, RlpEncodable, RlpDecodable)] pub struct CreateResult {