]> Cypherpunks repositories - gostls13.git/commit
strconv: remove unused append rune width param
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 5 Mar 2017 12:37:33 +0000 (13:37 +0100)
committerIan Lance Taylor <iant@golang.org>
Mon, 6 Mar 2017 04:37:13 +0000 (04:37 +0000)
commitde3669901a6c9551067071ab410775e57e3b26c2
tree7af731c36ef80ad0b8635987328f42a29af88ef5
parent6fd5e2549ad530dc6f8504de61f1e49fa4f336ea
strconv: remove unused append rune width param

Found by github.com/mvdan/unparam. Small performance win when the
utf8.RuneLen call is removed.

name               old time/op    new time/op    delta
AppendQuoteRune-4    21.7ns ± 0%    21.4ns ± 0%  -1.38%  (p=0.008 n=5+5)

Change-Id: Ieb3b3e1148db7a3d854c81555a491edeff549f43
Reviewed-on: https://go-review.googlesource.com/37831
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/strconv/quote.go