mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
[dev.typeparams] reflect: delete unused ptrSize and PtrSize
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>
This commit is contained in:
parent
95c104ee61
commit
bfd9b63f12
|
@ -23,8 +23,6 @@ func IsRO(v Value) bool {
|
||||||
|
|
||||||
var CallGC = &callGC
|
var CallGC = &callGC
|
||||||
|
|
||||||
const PtrSize = goarch.PtrSize
|
|
||||||
|
|
||||||
// FuncLayout calls funcLayout and returns a subset of the results for testing.
|
// 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
|
// Bitmaps like stack, gc, inReg, and outReg are expanded such that each bit
|
||||||
|
|
|
@ -14,8 +14,6 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ptrSize = 4 << (^uintptr(0) >> 63) // unsafe.Sizeof(uintptr(0)) but an ideal const
|
|
||||||
|
|
||||||
// Value is the reflection interface to a Go value.
|
// Value is the reflection interface to a Go value.
|
||||||
//
|
//
|
||||||
// Not all methods apply to all kinds of values. Restrictions,
|
// Not all methods apply to all kinds of values. Restrictions,
|
||||||
|
|
Loading…
Reference in a new issue