]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: delete unused type readClose
authorDominik Honnef <dominik@honnef.co>
Sat, 12 Mar 2016 17:52:08 +0000 (18:52 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 12 Mar 2016 22:13:32 +0000 (22:13 +0000)
readClose hasn't been used in years.

Change-Id: Ia963c082e049ef856c2a637fec15204efe48b3b6
Reviewed-on: https://go-review.googlesource.com/20631
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/net/http/client.go

index 68676a5dc9e04b992b7f0978e70b1ecb4dfc3a84..e2b82705ebca0e1d793b278125589c1b2db184bb 100644 (file)
@@ -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) {