From 5230d3309c12139d344d2fd1ee297f437afad832 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 21 Aug 2024 15:30:29 +1000 Subject: [PATCH] Remove hash_reader from sha256t_hash_newtype The `hash_reader` function is new and unreleased, it should never have been put into the `sha256t_hash_newtype` macro, and its broken. --- hashes/src/sha256t.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hashes/src/sha256t.rs b/hashes/src/sha256t.rs index 2a0a24870..bb31d466d 100644 --- a/hashes/src/sha256t.rs +++ b/hashes/src/sha256t.rs @@ -240,13 +240,6 @@ macro_rules! sha256t_hash_newtype { { <$hash_name as $crate::GeneralHash>::hash_byte_chunks(byte_slices) } - - /// Hashes the entire contents of the `reader`. - #[cfg(feature = "bitcoin-io")] - #[allow(unused)] // the user of macro may not need this - fn hash_reader(reader: &mut R) -> Result { - <$hash_name as $crate::GeneralHash>::hash_reader(reader) - } } impl $crate::GeneralHash for $hash_name {