From e3336ad2f558794eee256f1d2d6b6d7e13cf7c4b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 17 May 2020 12:50:11 +0800 Subject: [PATCH] chore: update --- tree.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tree.go b/tree.go index 98581b9c..24f14060 100644 --- a/tree.go +++ b/tree.go @@ -41,12 +41,6 @@ func (ps Params) ByName(name string) (va string) { return } -func strToBytes(s string) []byte { - x := (*[2]uintptr)(unsafe.Pointer(&s)) - h := [3]uintptr{x[0], x[1], x[1]} - return *(*[]byte)(unsafe.Pointer(&h)) -} - func bytesToStr(b []byte) string { return *(*string)(unsafe.Pointer(&b)) }