From 9de5f2eaf759b4c4550b3db39fed2e9e5f86f45c Mon Sep 17 00:00:00 2001 From: Ingo Gottwald Date: Sun, 11 Feb 2018 12:39:43 +0100 Subject: [PATCH] acme/autocert: Remove unused retryAfter func Change-Id: I607d3d2c28aa5a125bddc3fea4f9508942bc1365 Reviewed-on: https://go-review.googlesource.com/93315 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- acme/autocert/autocert.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/acme/autocert/autocert.go b/acme/autocert/autocert.go index 453e7229..263b2913 100644 --- a/acme/autocert/autocert.go +++ b/acme/autocert/autocert.go @@ -27,7 +27,6 @@ import ( "net" "net/http" "path" - "strconv" "strings" "sync" "time" @@ -942,16 +941,6 @@ func validCert(domain string, der [][]byte, key crypto.Signer) (leaf *x509.Certi return leaf, nil } -func retryAfter(v string) time.Duration { - if i, err := strconv.Atoi(v); err == nil { - return time.Duration(i) * time.Second - } - if t, err := http.ParseTime(v); err == nil { - return t.Sub(timeNow()) - } - return time.Second -} - type lockedMathRand struct { sync.Mutex rnd *mathrand.Rand