aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/string.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/string.go')
-rw-r--r--src/pkg/runtime/string.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/pkg/runtime/string.go b/src/pkg/runtime/string.go
index 1cefad9671..91f33db118 100644
--- a/src/pkg/runtime/string.go
+++ b/src/pkg/runtime/string.go
@@ -145,19 +145,6 @@ type stringStruct struct {
len int
}
-func cstringToGo(str unsafe.Pointer) (s string) {
- i := 0
- for ; ; i++ {
- if *(*byte)(unsafe.Pointer(uintptr(str) + uintptr(i))) == 0 {
- break
- }
- }
- t := (*stringStruct)(unsafe.Pointer(&s))
- t.str = unsafe.Pointer(str)
- t.len = i
- return
-}
-
func intstring(v int64) string {
s, b := rawstring(4)
n := runetochar(b, rune(v))