diff --git a/secp256k1-sys/src/macros.rs b/secp256k1-sys/src/macros.rs index a3dd1b1..761ab94 100644 --- a/secp256k1-sys/src/macros.rs +++ b/secp256k1-sys/src/macros.rs @@ -19,16 +19,6 @@ macro_rules! impl_array_newtype { ($thing:ident, $ty:ty, $len:expr) => { impl Copy for $thing {} - impl $thing { - /// Returns the length of the object as an array. - #[inline] - pub fn len(&self) -> usize { $len } - - /// Returns whether the object as an array is empty. - #[inline] - pub fn is_empty(&self) -> bool { false } - } - impl AsRef<[$ty; $len]> for $thing { #[inline] /// Gets a reference to the underlying array diff --git a/src/macros.rs b/src/macros.rs index 8245cda..b457c02 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -19,16 +19,6 @@ macro_rules! impl_array_newtype { ($thing:ident, $ty:ty, $len:expr) => { impl Copy for $thing {} - impl $thing { - /// Returns the length of the object as an array. - #[inline] - pub fn len(&self) -> usize { $len } - - /// Returns whether the object as an array is empty. - #[inline] - pub fn is_empty(&self) -> bool { false } - } - impl AsRef<[$ty; $len]> for $thing { #[inline] /// Gets a reference to the underlying array