]> Cypherpunks repositories - gostls13.git/commit
all: delete dead non-test code
authorDominik Honnef <dominik@honnef.co>
Sun, 20 Mar 2016 23:12:18 +0000 (00:12 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 25 Mar 2016 06:28:13 +0000 (06:28 +0000)
commitfdba5a7544e54227c910ae3b26511c718df786a1
treeb2acc55d32e25e299654ce0de1abf7bdd1eaa048
parent6a6a0734163567545aed2b558f24f2aafc6c9072
all: delete dead non-test code

This change removes a lot of dead code. Some of the code has never been
used, not even when it was first commited. The rest shouldn't have
survived refactors.

This change doesn't remove unused routines helpful for debugging, nor
does it remove code that's used in commented out blocks of code that are
only unused temporarily. Furthermore, unused constants weren't removed
when they were part of a set of constants from specifications.

One noteworthy omission from this CL are about 1000 lines of unused code
in cmd/fix, 700 lines of which are the typechecker, which hasn't been
used ever since the pre-Go 1 fixes have been removed. I wasn't sure if
this code should stick around for future uses of cmd/fix or be culled as
well.

Change-Id: Ib714bc7e487edc11ad23ba1c3222d1fd02e4a549
Reviewed-on: https://go-review.googlesource.com/20926
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
29 files changed:
src/cmd/api/goapi.go
src/cmd/cgo/gcc.go
src/cmd/dist/util.go
src/cmd/doc/pkg.go
src/cmd/go/build.go
src/cmd/go/generate.go
src/cmd/go/main.go
src/cmd/go/pkg.go
src/cmd/pprof/internal/report/report.go
src/cmd/yacc/yacc.go
src/compress/bzip2/bzip2.go
src/compress/flate/token.go
src/crypto/tls/common.go
src/crypto/tls/conn.go
src/database/sql/sql.go
src/debug/macho/macho.go
src/encoding/xml/marshal.go
src/html/escape.go
src/io/pipe.go
src/net/http/fcgi/fcgi.go
src/net/http/httputil/dump.go
src/net/http/transport.go
src/reflect/value.go
src/regexp/backtrack.go
src/regexp/exec.go
src/regexp/regexp.go
src/sort/sort.go
src/text/template/funcs.go
src/time/time.go