Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Dorezyuk committed Dec 8, 2023
1 parent 060abdd commit 87de5ea
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions zvt/src/sequences.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<u8>> {
// 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),
Expand Down

0 comments on commit 87de5ea

Please sign in to comment.