utils: remove scarcely used time helper functions (#4593)

This commit is contained in:
Marten Seemann
2024-07-23 15:16:12 -06:00
committed by GitHub
parent e179048526
commit 8451b0afd7
8 changed files with 19 additions and 90 deletions

View File

@@ -64,7 +64,7 @@ func (r *RTTStats) PTO(includeMaxAckDelay bool) time.Duration {
// UpdateRTT updates the RTT based on a new sample.
func (r *RTTStats) UpdateRTT(sendDelta, ackDelay time.Duration, now time.Time) {
if sendDelta == InfDuration || sendDelta <= 0 {
if sendDelta <= 0 {
return
}