summaryrefslogtreecommitdiff
path: root/pkg/btrfs/util.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-05 16:46:34 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-05 16:46:34 -0600
commitbf2327276e6b3c8158a23362ca2fca5f46317e56 (patch)
tree7b45ba7c632a0932def8c9af9ecc98032bcfd2fa /pkg/btrfs/util.go
parentea17fd8e1e05c4fe0a38fa7d763f0e91bc28b967 (diff)
factor out a btrfsmisc pacage
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
-}