aboutsummaryrefslogtreecommitdiffstats
path: root/modules/util
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-03 18:34:57 +0800
committerGitHub <noreply@github.com>2023-09-03 10:34:57 +0000
commitfc039167d200b423c95807758628e4899e3ca7df (patch)
treece59b8dbeb74d21b5f337b80160abe74c00a94a9 /modules/util
parent7477c93d621f4e7f1e09336e6c8bd741b3781f8c (diff)
downloadgitea-fc039167d200b423c95807758628e4899e3ca7df.tar.gz
gitea-fc039167d200b423c95807758628e4899e3ca7df.zip
Use Go 1.21 and update dependencies (#26878)
To make sure Gitea's next release's lifecycle could have active Golang support. And min/max are builtin now.
Diffstat (limited to 'modules/util')
-rw-r--r--modules/util/util.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/util/util.go b/modules/util/util.go
index cc25539967..c47931f6c9 100644
--- a/modules/util/util.go
+++ b/modules/util/util.go
@@ -60,22 +60,6 @@ func OptionalBoolParse(s string) OptionalBool {
return OptionalBoolOf(b)
}
-// Max max of two ints
-func Max(a, b int) int {
- if a < b {
- return b
- }
- return a
-}
-
-// Min min of two ints
-func Min(a, b int) int {
- if a > b {
- return b
- }
- return a
-}
-
// IsEmptyString checks if the provided string is empty
func IsEmptyString(s string) bool {
return len(strings.TrimSpace(s)) == 0