From 03d5e623398478fa929c8ba4b8f15de74017d82a Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 29 Aug 2023 15:48:27 +0200 Subject: [PATCH] http2: remove unused ClientConn.tconnClosed It was added in CL 429060 but was never used. Change-Id: Ie1bcd44559006082afed319c0db677ff2ca957d7 Reviewed-on: https://go-review.googlesource.com/c/net/+/523935 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Run-TryBot: Tobias Klauser Reviewed-by: Damien Neil TryBot-Result: Gopher Robot LUCI-TryBot-Result: Go LUCI --- http2/transport.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/http2/transport.go b/http2/transport.go index b0d482f9f4..4515b22c4a 100644 --- a/http2/transport.go +++ b/http2/transport.go @@ -291,8 +291,7 @@ func (t *Transport) initConnPool() { // HTTP/2 server. type ClientConn struct { t *Transport - tconn net.Conn // usually *tls.Conn, except specialized impls - tconnClosed bool + tconn net.Conn // usually *tls.Conn, except specialized impls tlsState *tls.ConnectionState // nil only for specialized impls reused uint32 // whether conn is being reused; atomic singleUse bool // whether being used for a single http.Request