From 215bcbc6acc84565597bfafe8adc2eb1d1d5412b Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Mon, 7 Aug 2023 13:44:17 +0000 Subject: [PATCH] testing: use the builtin max/min function Change-Id: I1250b6a33f5f3509a216d307f1783ad4aa5937fc GitHub-Last-Rev: 98dc6b1a11eea8542551a368780a74c1ee2d7083 GitHub-Pull-Request: golang/go#61809 Reviewed-on: https://go-review.googlesource.com/c/go/+/516616 Run-TryBot: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Keith Randall Auto-Submit: Keith Randall Reviewed-by: Keith Randall Reviewed-by: Michael Knyszek --- src/testing/benchmark.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index 0faf075d93..e408595993 100644 --- a/src/testing/benchmark.go +++ b/src/testing/benchmark.go @@ -198,20 +198,6 @@ func (b *B) runN(n int) { } } -func min(x, y int64) int64 { - if x > y { - return y - } - return x -} - -func max(x, y int64) int64 { - if x < y { - return y - } - return x -} - // run1 runs the first iteration of benchFunc. It reports whether more // iterations of this benchmarks should be run. func (b *B) run1() bool { -- 2.50.0