From 03ac39ce5e6af4c4bca58b54d5b160a154b7aa0e Mon Sep 17 00:00:00 2001 From: Daniel Martí Date: Mon, 2 Sep 2019 14:17:23 +0200 Subject: std: remove unused bits of code all over the place MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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í TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/database/sql/ctxutil.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/database/sql') diff --git a/src/database/sql/ctxutil.go b/src/database/sql/ctxutil.go index af2afd5aa5..4dbe6af6d2 100644 --- a/src/database/sql/ctxutil.go +++ b/src/database/sql/ctxutil.go @@ -94,8 +94,6 @@ func ctxDriverStmtQuery(ctx context.Context, si driver.Stmt, nvdargs []driver.Na return si.Query(dargs) } -var errLevelNotSupported = errors.New("sql: selected isolation level is not supported") - func ctxDriverBegin(ctx context.Context, opts *TxOptions, ci driver.Conn) (driver.Tx, error) { if ciCtx, is := ci.(driver.ConnBeginTx); is { dopts := driver.TxOptions{} -- cgit v1.3