]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] runtime/internal/sys: remove unused PtrSize
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 16 Jun 2021 23:16:05 +0000 (23:16 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 17 Jun 2021 18:54:59 +0000 (18:54 +0000)
Change-Id: I01e079b95f71b01edaf049d49a0993a7ed39c7bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/328810
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/runtime/internal/sys/consts.go

index 815f7893808e71007374438581c4a5814bfe87d4..349d2ed4d656d5904e4433590df109bb17cdce1d 100644 (file)
@@ -24,10 +24,6 @@ const (
        WASM    = goarch.WASM
 )
 
-// PtrSize is the size of a pointer in bytes - unsafe.Sizeof(uintptr(0)) but as an ideal constant.
-// It is also the size of the machine's native word size (that is, 4 on 32-bit systems, 8 on 64-bit).
-const PtrSize = goarch.PtrSize
-
 // ArchFamily is the architecture family (AMD64, ARM, ...)
 const ArchFamily ArchFamilyType = goarch.ArchFamily