Skip to content

Commit

Permalink
Remove useless function
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-ambrona committed Apr 24, 2024
1 parent 4796ecf commit 238301d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions halo2_proofs/src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,6 @@ pub trait SerdePrimeField: PrimeField + SerdeObject {
}
impl<F: PrimeField + SerdeObject> SerdePrimeField for F {}

/// Writes the first `bits.len()` bits of a `u8` into `bits`.
pub fn unpack(byte: u8, bits: &mut [bool]) {
for (bit_index, bit) in bits.iter_mut().enumerate() {
*bit = (byte >> bit_index) & 1 == 1;
}
}

/// Reads a vector of polynomials from buffer
pub(crate) fn read_polynomial_vec<R: io::Read, F: SerdePrimeField, B>(
reader: &mut R,
Expand Down

0 comments on commit 238301d

Please sign in to comment.