aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-01-22 17:30:34 -0500
committerSam Anthony <sam@samanthony.xyz>2024-01-22 17:30:34 -0500
commit6ea734a324e3e5b33f9a7c7fe9882968a0657f85 (patch)
treecbe88888c11f1dd29a8690401d09ce4539e79b6f /ui.go
parent5e59867578f01fdaa5a62558cf23935b95e807ad (diff)
downloadpfc-6ea734a324e3e5b33f9a7c7fe9882968a0657f85.zip
use builtin min() function from go 1.21
Diffstat (limited to 'ui.go')
-rw-r--r--ui.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/ui.go b/ui.go
index 6a56bd9..115df33 100644
--- a/ui.go
+++ b/ui.go
@@ -156,11 +156,3 @@ func fill(s []rune, c rune) {
s[i] = c
}
}
-
-// min returns the lesser of x or y.
-func min(x, y int) int {
- if x < y {
- return x
- }
- return y
-}