]> Cypherpunks repositories - gostls13.git/commit
std: remove unused bits of code all over the place
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 2 Sep 2019 12:17:23 +0000 (14:17 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 2 Sep 2019 12:57:37 +0000 (12:57 +0000)
commit03ac39ce5e6af4c4bca58b54d5b160a154b7aa0e
treee40846ac626b4be09b8ff5bf6e3ffab9cb3e36bc
parentd5fe73393c40c7b4070aa73903671c8d1f23f2c2
std: remove unused bits of code all over the place

Some were never used, and some haven't been used for years.

One exception is net/http's readerAndCloser, which was only used in a
test. Move it to a test file.

While at it, remove a check in regexp that could never fire; the field
is an uint32, so it can never be negative.

Change-Id: Ia2200f6afa106bae4034045ea8233b452f38747b
Reviewed-on: https://go-review.googlesource.com/c/go/+/192621
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/ctxutil.go
src/encoding/json/decode_test.go
src/encoding/xml/marshal_test.go
src/internal/reflectlite/value.go
src/net/http/response_test.go
src/net/http/transport.go
src/os/user/cgo_lookup_unix.go
src/reflect/type.go
src/regexp/backtrack.go