Skip to content

Commit

Permalink
fix: Remove unnecessary space function (#2122)
Browse files Browse the repository at this point in the history
Funtion is only used internally.

Broken out of #1998
  • Loading branch information
larseggert authored Sep 17, 2024
1 parent 75372c2 commit b70e5cf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions neqo-transport/src/recovery/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b70e5cf

Please sign in to comment.