From 6f2e1be1320940ffce998011ee2d81190cec8bca Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 18 Sep 2023 11:07:03 +0200 Subject: syscall: remove unused writelen Change-Id: I3c0e9e405120ef595712741a2f8e963cbb0733dc Reviewed-on: https://go-review.googlesource.com/c/go/+/529035 TryBot-Result: Gopher Robot Auto-Submit: Tobias Klauser Reviewed-by: Matthew Dempsky Reviewed-by: Ian Lance Taylor Run-TryBot: Tobias Klauser LUCI-TryBot-Result: Go LUCI --- src/syscall/zsyscall_linux_arm.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/syscall/zsyscall_linux_arm.go') diff --git a/src/syscall/zsyscall_linux_arm.go b/src/syscall/zsyscall_linux_arm.go index a72355f96f..245a44a4d8 100644 --- a/src/syscall/zsyscall_linux_arm.go +++ b/src/syscall/zsyscall_linux_arm.go @@ -977,17 +977,6 @@ func readlen(fd int, p *byte, np int) (n int, err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT -func writelen(fd int, p *byte, np int) (n int, err error) { - r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(p)), uintptr(np)) - n = int(r0) - if e1 != 0 { - err = errnoErr(e1) - } - return -} - -// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT - func munmap(addr uintptr, length uintptr) (err error) { _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) if e1 != 0 { -- cgit v1.3-5-g9baa