refactor(proto): Remove unused protocol flags and helper functions

This commit is contained in:
Nils Andreas Svee committed 2026-04-28 17:58:31 +07:00
1 parent 1aff30c709
commit 3a523092fb
2 files changed
+3 -11

No files matched your search

+2 -5
View File
@@ -1,5 +1,5 @@
use crate::{
params::{Clock, Params, StampAt},
params::{Params, StampAt},
HEADER_SIZE, HMAC_SIZE, RECV_COUNT_SIZE, RECV_WINDOW_SIZE, SEQ_SIZE, TIMESTAMP_SIZE,
TOKEN_SIZE,
};
@@ -117,13 +117,10 @@ pub fn echo_packet_len(hmac: bool, params: &Params) -> usize {
header_len.max(requested)
}
#[allow(dead_code)]
fn _assert_clock_is_used(_: Clock) {}
#[cfg(test)]
mod tests {
use super::*;
use crate::params::{ReceivedStats, StampAt};
use crate::params::{Clock, ReceivedStats, StampAt};
fn params(stats: ReceivedStats, stamp_at: StampAt, clock: Clock) -> Params {
Params {