From: Joe Kyo Date: Mon, 31 Jul 2017 09:30:16 +0000 (+0100) Subject: net/http: remove an unused variable in readCookies function X-Git-Tag: go1.10beta1~1665 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1ee55c3ab6e4dff810a03bc1d788dd6106cdf691;p=gostls13.git net/http: remove an unused variable in readCookies function Change-Id: I9d77655026f16a41a77bd0036d693a40cdd6d52f Reviewed-on: https://go-review.googlesource.com/52090 Reviewed-by: Brad Fitzpatrick Reviewed-by: Joe Tsai Run-TryBot: Brad Fitzpatrick Run-TryBot: Joe Tsai TryBot-Result: Gobot Gobot --- diff --git a/src/net/http/cookie.go b/src/net/http/cookie.go index cf522488c1..38b1b3630e 100644 --- a/src/net/http/cookie.go +++ b/src/net/http/cookie.go @@ -208,7 +208,6 @@ func readCookies(h Header, filter string) []*Cookie { continue } // Per-line attributes - parsedPairs := 0 for i := 0; i < len(parts); i++ { parts[i] = strings.TrimSpace(parts[i]) if len(parts[i]) == 0 { @@ -229,7 +228,6 @@ func readCookies(h Header, filter string) []*Cookie { continue } cookies = append(cookies, &Cookie{Name: name, Value: val}) - parsedPairs++ } } return cookies