]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/hex: remove unused variable from BenchmarkDump
authorTim Cooper <tim.cooper@layeh.com>
Tue, 3 Mar 2020 13:08:06 +0000 (07:08 -0600)
committerIan Lance Taylor <iant@golang.org>
Tue, 3 Mar 2020 14:53:52 +0000 (14:53 +0000)
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>
src/encoding/hex/hex_test.go

index dbb00b94caca9d6b8d3b9e2914a9d3bdc39d4091..31e3f689365c9372be6c8b06a54b4ca95eaa04de 100644 (file)
@@ -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))