diff --git a/src/internal_macros.rs b/src/internal_macros.rs index d4f39f6..afa6b33 100644 --- a/src/internal_macros.rs +++ b/src/internal_macros.rs @@ -38,25 +38,6 @@ macro_rules! impl_consensus_encoding { ); } -macro_rules! impl_newtype_consensus_encoding { - ($thing:ident) => ( - impl ::consensus::encode::Encodable for $thing { - #[inline] - fn consensus_encode(&self, s: &mut S) -> Result<(), ::consensus::encode::Error> { - let &$thing(ref data) = self; - data.consensus_encode(s) - } - } - - impl ::consensus::encode::Decodable for $thing { - #[inline] - fn consensus_decode(d: &mut D) -> Result<$thing, ::consensus::encode::Error> { - Ok($thing(Decodable::consensus_decode(d)?)) - } - } - ); -} - macro_rules! impl_array_newtype { ($thing:ident, $ty:ty, $len:expr) => { impl $thing {