From 089c21ea522b34c7c9539ac4620ecd09c1f59c77 Mon Sep 17 00:00:00 2001 From: Roger Peppe Date: Wed, 10 Nov 2010 09:39:26 -0800 Subject: [PATCH] testing: delete redundant name argument to Benchmark(). [it was a carry over from the previous iteration] R=r CC=golang-dev https://golang.org/cl/3016041 --- src/pkg/testing/benchmark.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/testing/benchmark.go b/src/pkg/testing/benchmark.go index 7c30e4e4ea4..d82007e2ced 100644 --- a/src/pkg/testing/benchmark.go +++ b/src/pkg/testing/benchmark.go @@ -189,7 +189,7 @@ func RunBenchmarks(matchString func(pat, str string) (bool, os.Error), benchmark // Benchmark benchmarks a single function. Useful for creating // custom benchmarks that do not use gotest. -func Benchmark(name string, f func(b *B)) BenchmarkResult { - b := &B{benchmark: InternalBenchmark{name, f}} +func Benchmark(f func(b *B)) BenchmarkResult { + b := &B{benchmark: InternalBenchmark{"", f}} return b.run() }