]> Cypherpunks repositories - gostls13.git/commitdiff
net: remove unused _C_GoString
authorTobias Klauser <tklauser@distanz.ch>
Wed, 6 Sep 2023 16:31:00 +0000 (18:31 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 7 Sep 2023 16:10:42 +0000 (16:10 +0000)
It's unused since CL 466335.

Change-Id: I2750f478bd2a1cde270a6273551e1434cb38b5ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/526076
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/net/cgo_unix_cgo.go
src/net/cgo_unix_syscall.go

index d11f3e301afe59b83a6a0593c881a112c901cb79..78ad36bccdd3e286608f93ef5edf33411c78852d 100644 (file)
@@ -55,7 +55,6 @@ type (
        _C_struct_sockaddr = C.struct_sockaddr
 )
 
-func _C_GoString(p *_C_char) string      { return C.GoString(p) }
 func _C_malloc(n uintptr) unsafe.Pointer { return C.malloc(C.size_t(n)) }
 func _C_free(p unsafe.Pointer)           { C.free(p) }
 
index 2eb8df1da67242b3a52a0904364aa9b4591440ce..2f057ce9027b1e44526e34aab3717556142ab07a 100644 (file)
@@ -39,10 +39,6 @@ type (
        _C_struct_sockaddr    = syscall.RawSockaddr
 )
 
-func _C_GoString(p *_C_char) string {
-       return unix.GoString(p)
-}
-
 func _C_free(p unsafe.Pointer) { runtime.KeepAlive(p) }
 
 func _C_malloc(n uintptr) unsafe.Pointer {