From b4ff53e7a1cb8ab8ce2e12d50d5d63530183e1a9 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Fri, 25 Oct 2019 00:16:44 +0700 Subject: [PATCH] unix: remove un-used ptrSize Same as CL 202881. Change-Id: Idc85bd23574c437c711b40155b49621e35ef571b Reviewed-on: https://go-review.googlesource.com/c/sys/+/203237 Run-TryBot: Cuong Manh Le TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick Reviewed-by: Tobias Klauser --- unix/syscall_darwin.1_13.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/unix/syscall_darwin.1_13.go b/unix/syscall_darwin.1_13.go index 24960c38..f911617b 100644 --- a/unix/syscall_darwin.1_13.go +++ b/unix/syscall_darwin.1_13.go @@ -27,8 +27,6 @@ func libc_fdopendir_trampoline() 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