aboutsummaryrefslogtreecommitdiff
path: root/pkg/util/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/util/util.go')
-rw-r--r--pkg/util/util.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg/util/util.go b/pkg/util/util.go
index cbc6014..c0b5a17 100644
--- a/pkg/util/util.go
+++ b/pkg/util/util.go
@@ -2,17 +2,6 @@ package util
import "time"
-// Contains searches for `needle` in `haystack` and returns `true` if found.
-func Contains[T comparable](haystack []T, needle T) bool {
- for _, s := range haystack {
- if s == needle {
- return true
- }
- }
-
- return false
-}
-
// TimeFormat formats the given time, where an empty time is formatted as "not set".
func TimeFormat(t time.Time) string {
if t.IsZero() {