aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2021-06-16 23:16:05 +0000
committerMichael Knyszek <mknyszek@google.com>2021-06-17 18:54:59 +0000
commit6d89c90fb166bf5c58fff33716ba632b67e9c182 (patch)
tree1bcf19d0b59f44eadf8b525563380caa151d58db /src
parent6d85891b291db01532375a7f69c24cb68b76bf11 (diff)
downloadgo-6d89c90fb166bf5c58fff33716ba632b67e9c182.tar.xz
[dev.typeparams] runtime/internal/sys: remove unused PtrSize
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>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/internal/sys/consts.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/runtime/internal/sys/consts.go b/src/runtime/internal/sys/consts.go
index 815f789380..349d2ed4d6 100644
--- a/src/runtime/internal/sys/consts.go
+++ b/src/runtime/internal/sys/consts.go
@@ -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