]> Cypherpunks repositories - gostls13.git/commit
net/http: eliminate defined-but-not-used var.
authorAlan Donovan <adonovan@google.com>
Tue, 11 Mar 2014 02:22:51 +0000 (22:22 -0400)
committerAlan Donovan <adonovan@google.com>
Tue, 11 Mar 2014 02:22:51 +0000 (22:22 -0400)
commitcf57cf17e785e0e1c36c522067490b9a806e9cb1
tree604fb9eb79afe57c9c183f323c1500cc5bd2b3ec
parent1306279cd14e1e1e5c7645de6697bd3ab09c59aa
net/http: eliminate defined-but-not-used var.

gc does not report this as an error, but go/types does.
(I suspect that constructing a closure counts as a reference
to &all in gc's implementation).

This is not a tool bug, since the spec doesn't require
implementations to implement this check, but it does
illustrate that dialect variations are always a nuisance.

LGTM=rsc, bradfitz
R=bradfitz
CC=golang-codereviews, gri, rsc
https://golang.org/cl/73850043
src/pkg/net/http/client_test.go