]> Cypherpunks repositories - gostls13.git/commit
all: remove some unused result params
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 15 Aug 2017 20:15:26 +0000 (21:15 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 28 Aug 2017 06:52:55 +0000 (06:52 +0000)
commit5d39af9d9bac91b84b9944b1edffc6fb332747fa
tree5569c6e045c8509b6e250fae3c41feb9cb5dc3dd
parent0c4d035ca884c9150ab4114922e29f457b45b996
all: remove some unused result params

Most of these are return values that were part of a receiving parameter,
so they're still accessible.

A few others are not, but those have never had a use.

Found with github.com/mvdan/unparam, after Kevin Burke's suggestion that
the tool should also warn about unused result parameters.

Change-Id: Id8b5ed89912a99db22027703a88bd94d0b292b8b
Reviewed-on: https://go-review.googlesource.com/55910
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/asm/internal/asm/parse.go
src/cmd/compile/internal/gc/dcl.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/ssa/trim.go
src/cmd/go/internal/load/pkg.go
src/encoding/json/encode.go
src/testing/benchmark.go