From 6802bbf4073fcc857a47057b8c85e341211ff51d Mon Sep 17 00:00:00 2001 From: NatoliChris Date: Tue, 18 Sep 2018 15:59:29 +1000 Subject: [PATCH] Remove `decode_ssz_list_element` unused function. --- ssz/src/decode.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ssz/src/decode.rs b/ssz/src/decode.rs index c8b5908edc..7cc4c24965 100644 --- a/ssz/src/decode.rs +++ b/ssz/src/decode.rs @@ -27,17 +27,6 @@ pub fn decode_ssz(ssz_bytes: &[u8], index: usize) T::ssz_decode(ssz_bytes, index) } -/// Decode the nth element of some ssz list. -/// -/// A single ssz encoded value can be considered a list of -/// one element, so this function will work on it too. -pub fn decode_ssz_list_element(ssz_bytes: &[u8], n: usize) - -> Result - where T: Decodable -{ - T::ssz_decode(nth_value(ssz_bytes, n)?) -} - /// Return the nth value in some ssz encoded list. /// /// The four-byte length prefix is not included in the return.