From: Tim Cooper Date: Tue, 3 Mar 2020 13:08:06 +0000 (-0600) Subject: encoding/hex: remove unused variable from BenchmarkDump X-Git-Tag: go1.15beta1~950 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=96acb74655531794d6f563242736d25f4e716b11;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- 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))