]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: Remove unused code
authorTodd Neal <todd@tneal.org>
Mon, 22 Jun 2015 13:31:38 +0000 (08:31 -0500)
committerAndrew Gerrand <adg@golang.org>
Mon, 22 Jun 2015 22:54:35 +0000 (22:54 +0000)
This appears to be some legacy which is no longer used.

Change-Id: I469beb59a90853e8de910158f179b32f1aa14c7d
Reviewed-on: https://go-review.googlesource.com/11304
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Andrew Gerrand <adg@golang.org>

src/net/http/transport.go

index 5de5d944afc9bb0741bd83b3d2cedeee7c440b7a..70797ddfe7e7ea8cc42c4f2312583f579d287b44 100644 (file)
@@ -858,18 +858,6 @@ func (pc *persistConn) cancelRequest() {
        pc.closeLocked()
 }
 
-var remoteSideClosedFunc func(error) bool // or nil to use default
-
-func remoteSideClosed(err error) bool {
-       if err == io.EOF {
-               return true
-       }
-       if remoteSideClosedFunc != nil {
-               return remoteSideClosedFunc(err)
-       }
-       return false
-}
-
 func (pc *persistConn) readLoop() {
        // eofc is used to block http.Handler goroutines reading from Response.Body
        // at EOF until this goroutines has (potentially) added the connection