]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: remove unused {dragonfly,illumos,solaris}64Bit constants
authorTobias Klauser <tklauser@distanz.ch>
Sun, 5 May 2019 13:49:47 +0000 (15:49 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Sun, 5 May 2019 15:17:52 +0000 (15:17 +0000)
These are unused since CL 153837. illumos64Bit was added by CL 174457
but was never used.

Change-Id: I34a1bd41cf70f8a07e57f93a71de3c6034fcaf7b
Reviewed-on: https://go-review.googlesource.com/c/go/+/175358
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/syscall/syscall_unix.go

index faaa432136029969158d6a56182e0ed2f0b9a9f5..1b66e3bb1190706874897f556d5be8ca23d1e853 100644 (file)
@@ -21,11 +21,8 @@ var (
 )
 
 const (
-       darwin64Bit    = runtime.GOOS == "darwin" && sizeofPtr == 8
-       dragonfly64Bit = runtime.GOOS == "dragonfly" && sizeofPtr == 8
-       netbsd32Bit    = runtime.GOOS == "netbsd" && sizeofPtr == 4
-       solaris64Bit   = runtime.GOOS == "solaris" && sizeofPtr == 8
-       illumos64Bit   = runtime.GOOS == "illumos" && sizeofPtr == 8
+       darwin64Bit = runtime.GOOS == "darwin" && sizeofPtr == 8
+       netbsd32Bit = runtime.GOOS == "netbsd" && sizeofPtr == 4
 )
 
 func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)