summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-kv/format/util.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-09-27 10:26:50 +0000
committerLibravatar GitHub <noreply@github.com>2024-09-27 10:26:50 +0000
commit2f582e2e33b2bae06e136bd2a547a934a6700074 (patch)
treeade1642ba12d27ae8f38b7e88b170f5491c5e0fc /vendor/codeberg.org/gruf/go-kv/format/util.go
parent[chore] bump go-byteutil v1.2.0 -> v1.3.0 (#3356) (diff)
downloadgotosocial-2f582e2e33b2bae06e136bd2a547a934a6700074.tar.xz
update gruf / {go-cache, go-maps, go-kv} (#3361)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-kv/format/util.go')
-rw-r--r--vendor/codeberg.org/gruf/go-kv/format/util.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/vendor/codeberg.org/gruf/go-kv/format/util.go b/vendor/codeberg.org/gruf/go-kv/format/util.go
index 79cb30981..dbb918952 100644
--- a/vendor/codeberg.org/gruf/go-kv/format/util.go
+++ b/vendor/codeberg.org/gruf/go-kv/format/util.go
@@ -98,8 +98,3 @@ func isNil(i interface{}) bool {
type eface struct{ _type, data unsafe.Pointer } //nolint
return (*(*eface)(unsafe.Pointer(&i))).data == nil //nolint
}
-
-// b2s converts a byteslice to string without allocation.
-func b2s(b []byte) string {
- return *(*string)(unsafe.Pointer(&b))
-}