]> Cypherpunks.ru repositories - gostls13.git/commitdiff
syscall: remove un-used const ptrSize
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 24 Oct 2019 11:43:43 +0000 (18:43 +0700)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 24 Oct 2019 12:09:29 +0000 (12:09 +0000)
Change-Id: Ic809a533f9c4042373bdad3ba1cd237d203bacff
Reviewed-on: https://go-review.googlesource.com/c/go/+/202881
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/syscall/syscall_darwin.go

index 7d795ee4d3dda7a7411d00d9d5174bbbdc4b2720..c84547c628c0342213bfb4ab4e26ad74f134e4ae 100644 (file)
@@ -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