]> Cypherpunks.ru repositories - gostls13.git/commitdiff
testing: use the builtin max/min function
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Mon, 7 Aug 2023 13:44:17 +0000 (13:44 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 7 Aug 2023 18:49:54 +0000 (18:49 +0000)
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 <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/testing/benchmark.go

index 0faf075d93e075ae31127cdfff4b84a688dc92a1..e40859599349d87ebeeacb379c631e3ad295d29a 100644 (file)
@@ -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 {