mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-05 16:07:05 +08:00
all: use Go 1.21's min/max builtin functions
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user