aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorTim Cooper <tim.cooper@layeh.com>2020-03-03 07:08:06 -0600
committerIan Lance Taylor <iant@golang.org>2020-03-03 14:53:52 +0000
commit96acb74655531794d6f563242736d25f4e716b11 (patch)
treea55265ce0ca9f0939bcad50928efd6f50da22d7a /src/encoding
parente37cc298636abcd500aa8acc7375d001c431c64e (diff)
downloadgo-96acb74655531794d6f563242736d25f4e716b11.tar.gz
go-96acb74655531794d6f563242736d25f4e716b11.zip
encoding/hex: remove unused variable from BenchmarkDump
Change-Id: I1fd47e5eab27346cec488098d4f6102a0749bd28 Reviewed-on: https://go-review.googlesource.com/c/go/+/221788 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding')
-rw-r--r--src/encoding/hex/hex_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/encoding/hex/hex_test.go b/src/encoding/hex/hex_test.go
index dbb00b94ca..31e3f68936 100644
--- a/src/encoding/hex/hex_test.go
+++ b/src/encoding/hex/hex_test.go
@@ -267,7 +267,6 @@ func BenchmarkDecode(b *testing.B) {
func BenchmarkDump(b *testing.B) {
for _, size := range []int{256, 1024, 4096, 16384} {
src := bytes.Repeat([]byte{2, 3, 5, 7, 9, 11, 13, 17}, size/8)
- sink = make([]byte, 2*size)
b.Run(fmt.Sprintf("%v", size), func(b *testing.B) {
b.SetBytes(int64(size))