From f2c5dbb6966322ec24be6d5e655261646dee794d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Thu, 8 Jun 2023 16:53:55 +0100 Subject: [PATCH] deadcode --- common/socks5/requests/src/lib.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/common/socks5/requests/src/lib.rs b/common/socks5/requests/src/lib.rs index 6b3ea48c91..661f7266e2 100644 --- a/common/socks5/requests/src/lib.rs +++ b/common/socks5/requests/src/lib.rs @@ -59,36 +59,6 @@ impl SocketDataHeader { connection_id, local_socket_closed, }) - - // - // let with_seq = mem::size_of::() + 1 + mem::size_of::(); - // let without_seq = mem::size_of::() + 1; - // - // if b.len() < without_seq { - // return Err(InsufficientSocketDataError { - // received: b.len(), - // expected: without_seq, - // }); - // } - // - // // the unwraps here are fine as we just ensured we have the exact amount of bytes we need - // let connection_id = ConnectionId::from_be_bytes(b[0..8].try_into().unwrap()); - // let local_socket_closed = b[8] != 0; - // - // if b.len() > without_seq { - // return Err(InsufficientSocketDataError { - // received: b.len(), - // expected: without_seq, - // }); - // } - // - // let seq = u64::from_be_bytes(b[0..8].try_into().unwrap()); - // - // Ok(SocketDataHeader { - // seq, - // connection_id, - // local_socket_closed: local_socket_closed, - // }) } // the serialization of the header looks as follows: