From a42a396846453e44ff9abadc1430a8c0c6a11e25 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Thu, 24 Oct 2019 18:43:43 +0700 Subject: [PATCH] syscall: remove un-used const ptrSize Change-Id: Ic809a533f9c4042373bdad3ba1cd237d203bacff Reviewed-on: https://go-review.googlesource.com/c/go/+/202881 Reviewed-by: Tobias Klauser Run-TryBot: Tobias Klauser Run-TryBot: Cuong Manh Le TryBot-Result: Gobot Gobot --- src/syscall/syscall_darwin.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/syscall/syscall_darwin.go b/src/syscall/syscall_darwin.go index 7d795ee4d3..c84547c628 100644 --- a/src/syscall/syscall_darwin.go +++ b/src/syscall/syscall_darwin.go @@ -380,8 +380,6 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) { func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { // Simulate Getdirentries using fdopendir/readdir_r/closedir. - const ptrSize = unsafe.Sizeof(uintptr(0)) - // We store the number of entries to skip in the seek // offset of fd. See issue #31368. // It's not the full required semantics, but should handle the case -- 2.48.1