summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-kv/v2/format/abi.go')
-rw-r--r--vendor/codeberg.org/gruf/go-kv/v2/format/abi.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go b/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go
deleted file mode 100644
index 16b9c8cb9..000000000
--- a/vendor/codeberg.org/gruf/go-kv/v2/format/abi.go
+++ /dev/null
@@ -1,25 +0,0 @@
-//go:build go1.24 && !go1.26
-
-package format
-
-import (
- "reflect"
- "unsafe"
-
- "codeberg.org/gruf/go-xunsafe"
-)
-
-// add returns the ptr addition of starting ptr and a delta.
-func add(ptr unsafe.Pointer, delta uintptr) unsafe.Pointer {
- return unsafe.Pointer(uintptr(ptr) + delta)
-}
-
-// typeof is short-hand for reflect.TypeFor[T]().
-func typeof[T any]() reflect.Type {
- return reflect.TypeFor[T]()
-}
-
-const (
- // custom xunsafe.Reflect_flag to indicate key types.
- flagKeyType xunsafe.Reflect_flag = 1 << 10
-)