From: wulianglongrd Date: Sun, 29 Oct 2023 14:57:22 +0000 (+0800) Subject: net/http/cookiejar: remove unused variable X-Git-Tag: go1.22rc1~398 X-Git-Url: http://www.git.cypherpunks.ru/?a=commitdiff_plain;h=995ec5c85b2690ff65f7f1143f1283f19cd03100;p=gostls13.git net/http/cookiejar: remove unused variable The errNoHostname variable is not used, delete it. Change-Id: I62ca6390fd026e6a8cb1e8147f3fbfc3078c2249 Reviewed-on: https://go-review.googlesource.com/c/go/+/538455 Reviewed-by: Damien Neil Auto-Submit: Damien Neil LUCI-TryBot-Result: Go LUCI Reviewed-by: Bryan Mills --- diff --git a/src/net/http/cookiejar/jar.go b/src/net/http/cookiejar/jar.go index 273b54c84c..46d1193951 100644 --- a/src/net/http/cookiejar/jar.go +++ b/src/net/http/cookiejar/jar.go @@ -440,7 +440,6 @@ func (j *Jar) newEntry(c *http.Cookie, now time.Time, defPath, host string) (e e var ( errIllegalDomain = errors.New("cookiejar: illegal cookie domain attribute") errMalformedDomain = errors.New("cookiejar: malformed cookie domain attribute") - errNoHostname = errors.New("cookiejar: no host name available (IP only)") ) // endOfTime is the time when session (non-persistent) cookies expire.