forge
Explore
Log in

Don't you dare go Hollow

U13: remove BitWriter::with_capacity; no caller anywhere

Browse files at this commit

9557dcb6156fba9d4f91762e59d90991b895c29aAhmet Kaan GümüşParent: e37d4bf
crates/ec-core/src/bitio.rsmodified+0 -8
@@ -151,14 +151,6 @@ impl BitWriter {
151 BitWriter::default()151 BitWriter::default()
152 }152 }
153 153
154- /// An empty writer with room for `bytes`.
155- pub fn with_capacity(bytes: usize) -> BitWriter {
156- BitWriter {
157- buf: Vec::with_capacity(bytes),
158- used: 0,
159- }
160- }
161-
162 /// Bits written so far.154 /// Bits written so far.
163 pub fn bit_len(&self) -> u64 {155 pub fn bit_len(&self) -> u64 {
164 if self.used == 0 {156 if self.used == 0 {