From b70e5cfc4c5e98cfbd2bc9d1e95238139260c2e1 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 17 Sep 2024 03:39:14 -0700 Subject: [PATCH] fix: Remove unnecessary `space` function (#2122) Funtion is only used internally. Broken out of #1998 --- neqo-transport/src/recovery/mod.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/neqo-transport/src/recovery/mod.rs b/neqo-transport/src/recovery/mod.rs index f74aa11337..5820dc07a0 100644 --- a/neqo-transport/src/recovery/mod.rs +++ b/neqo-transport/src/recovery/mod.rs @@ -153,11 +153,6 @@ impl LossRecoverySpace { } } - #[must_use] - pub const fn space(&self) -> PacketNumberSpace { - self.space - } - /// Find the time we sent the first packet that is lower than the /// largest acknowledged and that isn't yet declared lost. /// Use the value we prepared earlier in `detect_lost_packets`. @@ -867,14 +862,14 @@ impl LossRecovery { let pto = Self::pto_period_inner( primary_path.borrow().rtt(), self.pto_state.as_ref(), - space.space(), + space.space, self.fast_pto, ); space.detect_lost_packets(now, loss_delay, pto, &mut lost_packets); primary_path.borrow_mut().on_packets_lost( space.largest_acked_sent_time, - space.space(), + space.space, &lost_packets[first..], &mut self.stats.borrow_mut(), now,