aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-05-10 13:13:01 -0400
committerSam Anthony <sam@samanthony.xyz>2024-05-10 13:13:01 -0400
commit528616ddbc1111c627df85ee38d406b2e7dc0000 (patch)
treec8948e37434ac645666433234c4ee79ab76dd6ef
parenta9895419352c374e32b8c8ac552abcb8a398caf9 (diff)
downloadvolute-528616ddbc1111c627df85ee38d406b2e7dc0000.zip
remove unused function
-rw-r--r--gui/widget/widget.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/gui/widget/widget.go b/gui/widget/widget.go
index c5a90dd..3bbfd1b 100644
--- a/gui/widget/widget.go
+++ b/gui/widget/widget.go
@@ -1,7 +1,6 @@
package widget
import (
- "cmp"
"fmt"
"sync"
@@ -72,12 +71,3 @@ func outputDraw(v float64, r image.Rectangle) func(draw.Image) image.Rectangle {
return r
}
}
-
-func contains[T cmp.Ordered](slc []T, v T) bool {
- for i := range slc {
- if slc[i] == v {
- return true
- }
- }
- return false
-}