From: Dominik Honnef Date: Sat, 12 Mar 2016 17:52:08 +0000 (+0100) Subject: net/http: delete unused type readClose X-Git-Tag: go1.7beta1~1368 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ab5cbc672b988a1cf656a27c2d5d8182cd660cc6;p=gostls13.git net/http: delete unused type readClose readClose hasn't been used in years. Change-Id: Ia963c082e049ef856c2a637fec15204efe48b3b6 Reviewed-on: https://go-review.googlesource.com/20631 Reviewed-by: Brad Fitzpatrick Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/net/http/client.go b/src/net/http/client.go index 68676a5dc9..e2b82705eb 100644 --- a/src/net/http/client.go +++ b/src/net/http/client.go @@ -138,14 +138,6 @@ func refererForURL(lastReq, newReq *url.URL) string { return referer } -// Used in Send to implement io.ReadCloser by bundling together the -// bufio.Reader through which we read the response, and the underlying -// network connection. -type readClose struct { - io.Reader - io.Closer -} - func (c *Client) send(req *Request, deadline time.Time) (*Response, error) { if c.Jar != nil { for _, cookie := range c.Jar.Cookies(req.URL) {