]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] reflect: delete unused ptrSize and PtrSize
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 16 Jun 2021 23:26:39 +0000 (23:26 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 17 Jun 2021 21:29:28 +0000 (21:29 +0000)
Change-Id: I522263eb5112b78639340b83d92e80a13f738bd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/328811
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/reflect/export_test.go
src/reflect/value.go

index e775eaf1350fe7a90259750917bea900e14fc32f..01749e30d85229a43ad976f738e60f324b9a7057 100644 (file)
@@ -23,8 +23,6 @@ func IsRO(v Value) bool {
 
 var CallGC = &callGC
 
-const PtrSize = goarch.PtrSize
-
 // FuncLayout calls funcLayout and returns a subset of the results for testing.
 //
 // Bitmaps like stack, gc, inReg, and outReg are expanded such that each bit
index e5ad4d5cd53c8d5accd09a816a63ef7241ac8fc6..d8a0b5245edcc9b013ea9c5917250da4a8e2751e 100644 (file)
@@ -14,8 +14,6 @@ import (
        "unsafe"
 )
 
-const ptrSize = 4 << (^uintptr(0) >> 63) // unsafe.Sizeof(uintptr(0)) but an ideal const
-
 // Value is the reflection interface to a Go value.
 //
 // Not all methods apply to all kinds of values. Restrictions,