summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/extra/bunotel/unsafe.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/uptrace/bun/extra/bunotel/unsafe.go')
-rw-r--r--vendor/github.com/uptrace/bun/extra/bunotel/unsafe.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/vendor/github.com/uptrace/bun/extra/bunotel/unsafe.go b/vendor/github.com/uptrace/bun/extra/bunotel/unsafe.go
deleted file mode 100644
index 67b687cbe..000000000
--- a/vendor/github.com/uptrace/bun/extra/bunotel/unsafe.go
+++ /dev/null
@@ -1,20 +0,0 @@
-//go:build !appengine
-// +build !appengine
-
-package bunotel
-
-import "unsafe"
-
-func bytesToString(b []byte) string {
- if len(b) == 0 {
- return ""
- }
- return unsafe.String(&b[0], len(b))
-}
-
-func stringToBytes(s string) []byte {
- if s == "" {
- return []byte{}
- }
- return unsafe.Slice(unsafe.StringData(s), len(s))
-}