Skip to content

Commit 042410d

Browse files
cuishuanggopherbot
authored andcommitted
driver: use the built-in min/max function
Starting from Go 1.21, the min/max functions are built-in. Therefore, we can remove the custom functions with the same name. Change-Id: Ie3490436ce36e8548a834628d7a269bf58afbd01 Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/707475 Reviewed-by: Sean Liao <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Sean Liao <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent 53c1b90 commit 042410d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

driver/driver.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -374,20 +374,6 @@ func roundUp(n uint64) uint64 {
374374
}
375375
}
376376

377-
func min(a, b uint64) uint64 {
378-
if a < b {
379-
return a
380-
}
381-
return b
382-
}
383-
384-
func max(a, b uint64) uint64 {
385-
if a > b {
386-
return a
387-
}
388-
return b
389-
}
390-
391377
var tmpSeq = 0
392378

393379
func tempFilename(ext string) string {

0 commit comments

Comments
 (0)