all: use Go 1.21's min/max builtin functions

This commit is contained in:
Hajime Hoshi
2024-09-12 00:58:15 +09:00
parent a36f6210c0
commit a4bfa6cb15
14 changed files with 2 additions and 131 deletions

View File

@@ -27,13 +27,6 @@ import (
"github.com/hajimehoshi/ebiten/v2/vector"
)
func min(x, y int) int {
if x < y {
return x
}
return y
}
var (
whiteImage = ebiten.NewImage(3, 3)