mirror of
https://github.com/golang/go
synced 2024-11-26 20:41:24 -07:00
net: remove unused _C_FreeCString
It's unused since CL 486015. Change-Id: Ic9397f5f84940a09f05499da2774b952fe6d1365 Reviewed-on: https://go-review.googlesource.com/c/go/+/486475 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
parent
54d429999c
commit
42f89db153
@ -56,7 +56,6 @@ type (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func _C_GoString(p *_C_char) string { return C.GoString(p) }
|
func _C_GoString(p *_C_char) string { return C.GoString(p) }
|
||||||
func _C_FreeCString(p *_C_char) { C.free(unsafe.Pointer(p)) }
|
|
||||||
func _C_malloc(n uintptr) unsafe.Pointer { return C.malloc(C.size_t(n)) }
|
func _C_malloc(n uintptr) unsafe.Pointer { return C.malloc(C.size_t(n)) }
|
||||||
func _C_free(p unsafe.Pointer) { C.free(p) }
|
func _C_free(p unsafe.Pointer) { C.free(p) }
|
||||||
|
|
||||||
|
@ -43,8 +43,7 @@ func _C_GoString(p *_C_char) string {
|
|||||||
return unix.GoString(p)
|
return unix.GoString(p)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _C_FreeCString(p *_C_char) { _C_free(unsafe.Pointer(p)) }
|
func _C_free(p unsafe.Pointer) { runtime.KeepAlive(p) }
|
||||||
func _C_free(p unsafe.Pointer) { runtime.KeepAlive(p) }
|
|
||||||
|
|
||||||
func _C_malloc(n uintptr) unsafe.Pointer {
|
func _C_malloc(n uintptr) unsafe.Pointer {
|
||||||
if n <= 0 {
|
if n <= 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user