From: Todd Neal Date: Mon, 22 Jun 2015 13:31:38 +0000 (-0500) Subject: net/http: Remove unused code X-Git-Tag: go1.5beta1~148 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c8aea7b18f81b97653f1861ee3acf10b1c074747;p=gostls13.git net/http: Remove unused code 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 Run-TryBot: Andrew Gerrand --- diff --git a/src/net/http/transport.go b/src/net/http/transport.go index 5de5d944af..70797ddfe7 100644 --- a/src/net/http/transport.go +++ b/src/net/http/transport.go @@ -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