From 87de5eaa0db630471e8bed2a685206f5d17aac1e Mon Sep 17 00:00:00 2001 From: Dima Dorezyuk Date: Fri, 8 Dec 2023 13:14:18 +0100 Subject: [PATCH] cleanup --- zvt/src/sequences.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/zvt/src/sequences.rs b/zvt/src/sequences.rs index e9556cd..66b4183 100644 --- a/zvt/src/sequences.rs +++ b/zvt/src/sequences.rs @@ -8,26 +8,6 @@ use std::boxed::Box; use std::marker::Unpin; use std::pin::Pin; -// pub async fn read_packet_async(src: &mut Pin<&mut impl AsyncReadPacket>) -> Result> { -// let mut buf = vec![0; 3]; -// src.read_exact(&mut buf).await?; - -// // Get the len. -// let len = if buf[2] == 0xff { -// buf.resize(5, 0); -// src.read_exact(&mut buf[3..5]).await?; -// u16::from_le_bytes(buf[3..5].try_into().unwrap()) as usize -// } else { -// buf[2] as usize -// }; - -// let start = buf.len(); -// buf.resize(start + len, 0); -// src.read_exact(&mut buf[start..]).await?; - -// Ok(buf.to_vec()) -// } - #[derive(ZvtEnum)] enum Ack { Ack(packets::Ack),