Remove decode_ssz_list_element unused function.

This commit is contained in:
NatoliChris 2018-09-18 15:59:29 +10:00
parent 92ebe5da0d
commit 6802bbf407
No known key found for this signature in database
GPG Key ID: D3EA7DBA19945306

View File

@ -27,17 +27,6 @@ pub fn decode_ssz<T>(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<T>(ssz_bytes: &[u8], n: usize)
-> Result<T, DecodeError>
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.