Skip to content

Commit

Permalink
primitives: remove unused and unconstructable Fe32Iter struct
Browse files Browse the repository at this point in the history
Appears to have been an accidental addition during iteration on #117.
  • Loading branch information
apoelstra committed Jul 5, 2024
1 parent 88da498 commit 74858d4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/primitives/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,19 +720,6 @@ impl<'s> ExactSizeIterator for ByteIter<'s> {
fn len(&self) -> usize { self.iter.len() }
}

/// An iterator over a parsed HRP string data as field elements.
pub struct Fe32Iter<'s> {
iter: AsciiToFe32Iter<'s>,
}

impl<'s> Iterator for Fe32Iter<'s> {
type Item = Fe32;
#[inline]
fn next(&mut self) -> Option<Fe32> { self.iter.next() }
#[inline]
fn size_hint(&self) -> (usize, Option<usize>) { self.iter.size_hint() }
}

/// Iterator adaptor that maps an iterator of valid bech32 character ASCII bytes to an
/// iterator of field elements.
///
Expand Down

0 comments on commit 74858d4

Please sign in to comment.