From 9f5b79b0000bda2a9ca3263f9d08fdc5f09b28ab Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Sun, 19 May 2024 09:38:08 -0700 Subject: [PATCH] http2: drop unused retry function Change-Id: Ibe7e022a4863c8b0e502d7952b870046443acf7e Reviewed-on: https://go-review.googlesource.com/c/net/+/586248 LUCI-TryBot-Result: Go LUCI Reviewed-by: Jonathan Amsterdam Reviewed-by: Brad Fitzpatrick --- http2/transport_test.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/http2/transport_test.go b/http2/transport_test.go index d73f35e02..261368f54 100644 --- a/http2/transport_test.go +++ b/http2/transport_test.go @@ -481,18 +481,6 @@ func TestTransportGroupsPendingDials(t *testing.T) { } } -func retry(tries int, delay time.Duration, fn func() error) error { - var err error - for i := 0; i < tries; i++ { - err = fn() - if err == nil { - return nil - } - time.Sleep(delay) - } - return err -} - func TestTransportAbortClosesPipes(t *testing.T) { shutdown := make(chan struct{}) ts := newTestServer(t,