From 96f9c62b0ec168572134703211d95a36cb5d9575 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Wed, 16 Jan 2019 16:01:26 -0500 Subject: [PATCH] Remove unused internal macro --- src/internal_macros.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/internal_macros.rs b/src/internal_macros.rs index d4f39f6e..afa6b332 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 {