summaryrefslogtreecommitdiff
path: root/pkg/btrfs/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/btrfs/util.go')
-rw-r--r--pkg/btrfs/util.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/pkg/btrfs/util.go b/pkg/btrfs/util.go
deleted file mode 100644
index 671d6fc..0000000
--- a/pkg/btrfs/util.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package btrfs
-
-import (
- "golang.org/x/exp/constraints"
-)
-
-func inSlice[T comparable](needle T, haystack []T) bool {
- for _, straw := range haystack {
- if needle == straw {
- return true
- }
- }
- return false
-}
-
-func max[T constraints.Ordered](a, b T) T {
- if a > b {
- return a
- }
- return b
-}
-
-func min[T constraints.Ordered](a, b T) T {
- if a < b {
- return a
- }
- return b
-}