summaryrefslogtreecommitdiff
path: root/common/minmax.go
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-07-07 00:33:12 +0800
committerKeuin <[email protected]>2023-07-07 00:33:12 +0800
commitc133daaba30d6c75eda2136a3c11682710f4562a (patch)
tree4c14b331b6870b852aff08fb71a4c222a777bda8 /common/minmax.go
parent76a7674dae069e0be15bed6af8450ad214f8dde2 (diff)
Refactor: remove unused code.
Diffstat (limited to 'common/minmax.go')
-rw-r--r--common/minmax.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/common/minmax.go b/common/minmax.go
deleted file mode 100644
index b670887..0000000
--- a/common/minmax.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package common
-
-/*
-Golang is a piece of shit. Its creators are paranoids.
-*/
-
-import (
- "golang.org/x/exp/constraints"
-)
-
-type Number interface {
- constraints.Integer | constraints.Float
-}
-
-func Min[T Number](t1 T, t2 T) T {
- if t1 < t2 {
- return t1
- }
- return t2
-}
-
-func Max[T Number](t1 T, t2 T) T {
- if t1 > t2 {
- return t1
- }
- return t2
-}