Skip to content

Commit 34f7a69

Browse files
refactor: Removed dead code
1 parent b23441b commit 34f7a69

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/packets/encryption_response.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1+
use crate::byte_buf_utils::read_varint;
12
use anyhow::Result;
23
use bytes::BytesMut;
34

4-
use crate::byte_buf_utils::read_varint;
5-
6-
#[allow(dead_code)]
75
pub struct EncryptionResponsePacket {
8-
pub shared_secret_length: usize,
96
pub shared_secret: Vec<u8>,
10-
11-
pub verify_token_length: usize,
127
pub verify_token: Vec<u8>,
138
}
149

@@ -21,9 +16,7 @@ impl EncryptionResponsePacket {
2116
let verify_token = buff.split_to(verify_token_length);
2217

2318
Ok(Self {
24-
shared_secret_length,
2519
shared_secret: shared_secret.to_vec(),
26-
verify_token_length,
2720
verify_token: verify_token.to_vec(),
2821
})
2922
}

0 commit comments

Comments
 (0)