]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove internal/panicif
authorMatt Joiner <anacrolix@gmail.com>
Wed, 4 Jun 2025 00:25:37 +0000 (10:25 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 4 Jun 2025 00:25:37 +0000 (10:25 +1000)
internal/panicif/panicif.go [deleted file]

diff --git a/internal/panicif/panicif.go b/internal/panicif/panicif.go
deleted file mode 100644 (file)
index c12d09c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-package panicif
-
-import "fmt"
-
-func NotEqual[T comparable](a, b T) {
-       if a != b {
-               panic(fmt.Sprintf("%v != %v", a, b))
-       }
-}
-
-func False(b bool) {
-       if !b {
-               panic("is false")
-       }
-}
-
-func True(b bool) {
-       if b {
-               panic("is true")
-       }
-}