]> Cypherpunks repositories - gostls13.git/commit
all: remove a few unused parameters
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 28 Apr 2019 16:03:35 +0000 (23:03 +0700)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 29 Apr 2019 13:31:54 +0000 (13:31 +0000)
commita27ede0ba9cd038582ea459f3c0e8419af4a2b88
treea10df9d8cda519f7c60408a6fe739ec5027ee575
parent45ed3dbddf98eb421bc3aefd4c29c016a69c9ab1
all: remove a few unused parameters

I recently modified tabwriter to reduce the number of defers due to
flush calls. However, I forgot to notice that the new function
flushNoDefers can no longer return an error, due to the lack of the
defer.

In crypto/tls, hashForServerKeyExchange never returned a non-nil error,
so simplify the code.

Finally, in go/types and net we can find a few trivially unused
parameters, so remove them.

Change-Id: I54c8de83fbc944df432453b55c93008d7e810e61
Reviewed-on: https://go-review.googlesource.com/c/go/+/174131
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
src/crypto/tls/key_agreement.go
src/go/types/call.go
src/net/dnsclient_unix.go
src/text/tabwriter/tabwriter.go