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.
This commit is contained in:
Tobin C. Harding 2024-08-21 15:30:29 +10:00
parent c061d936fb
commit 5230d3309c
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 0 additions and 7 deletions

View File

@ -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<R: io::BufRead>(reader: &mut R) -> Result<Self, io::Error> {
<$hash_name as $crate::GeneralHash>::hash_reader(reader)
}
}
impl $crate::GeneralHash for $hash_name {