From 8bdb6e4ee5991a052a78e644bf13b9f03acd46ef Mon Sep 17 00:00:00 2001 From: Zoey Date: Fri, 19 Apr 2024 13:17:40 -0700 Subject: [PATCH] comment out unused packet methods --- src/packet.rs | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/packet.rs b/src/packet.rs index bdb1d58..98a547a 100644 --- a/src/packet.rs +++ b/src/packet.rs @@ -62,27 +62,27 @@ impl<'p> PacketReader<'p> { Some(String::from_iter(chars).trim().to_string()) } - /// gets the next array of the given length in the packet, if any - fn next_array_of_length(&mut self, len: usize) -> Option> { - let mut bytes: Vec = Vec::new(); - let mut append = true; - for _ in 0..len { - let b = self.next_u8()?; - if append { - if b == 0 { - append = false; - } else { - bytes.push(b); - } - } - } - Some(bytes) - } + // /// gets the next array of the given length in the packet, if any + // fn next_array_of_length(&mut self, len: usize) -> Option> { + // let mut bytes: Vec = Vec::new(); + // let mut append = true; + // for _ in 0..len { + // let b = self.next_u8()?; + // if append { + // if b == 0 { + // append = false; + // } else { + // bytes.push(b); + // } + // } + // } + // Some(bytes) + // } - /// gets the next array of default size in the packet, if any - fn next_array(&mut self) -> Option> { - self.next_array_of_length(ARRAY_LENGTH) - } + // /// gets the next array of default size in the packet, if any + // fn next_array(&mut self) -> Option> { + // self.next_array_of_length(ARRAY_LENGTH) + // } } /// helper for writing a packet