From 9a66cb97a659ed1f0e52ba3d9438de1d9b78d64a Mon Sep 17 00:00:00 2001 From: EightFactorial Date: Wed, 25 Jan 2023 09:51:27 -0800 Subject: Fix test and packets (#60) * Fix test and packets * Fix bug, fix a couple more packets * add tests and fix stuff * fix warnings Co-authored-by: Ubuntu --- azalea-core/src/bitset.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'azalea-core/src') diff --git a/azalea-core/src/bitset.rs b/azalea-core/src/bitset.rs index b45a18d2..381e86ea 100755 --- a/azalea-core/src/bitset.rs +++ b/azalea-core/src/bitset.rs @@ -1,4 +1,4 @@ -use std::io::{Cursor, Read, Write}; +use std::io::{Cursor, Write}; use azalea_buf::{BufReadError, McBuf, McBufReadable, McBufWritable}; @@ -106,13 +106,6 @@ impl BitSet { pub fn set(&mut self, bit_index: usize) { self.data[bit_index / 64] |= 1u64 << (bit_index % 64); } - - /// Read a BitSet with a known length. - pub fn read_fixed(buf: &mut Cursor<&[u8]>, length: usize) -> Result { - let mut data = vec![0; length.div_ceil(8)]; - buf.read_exact(&mut data)?; - Ok(BitSet::from(data)) - } } impl From> for BitSet { -- cgit v1.2.3