]> Cypherpunks repositories - gostls13.git/commitdiff
internal/reflectlite: remove unused code
authorkhr@golang.org <khr@golang.org>
Thu, 23 Oct 2025 16:40:22 +0000 (09:40 -0700)
committerKeith Randall <khr@golang.org>
Mon, 26 Jan 2026 17:57:21 +0000 (09:57 -0800)
Change-Id: I87ae45657a9bae85b0fbf52692f15552a2987847
Reviewed-on: https://go-review.googlesource.com/c/go/+/738941
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/internal/reflectlite/value.go

index a92df613f55d1eb1ecf73f469788d86f07a9ae2f..fac816546c858c8228c12d0ce3567cdf0c2d4dac 100644 (file)
@@ -464,17 +464,3 @@ func ifaceE2I(t *abi.Type, src any, dst unsafe.Pointer)
 //
 //go:noescape
 func typedmemmove(t *abi.Type, dst, src unsafe.Pointer)
-
-// Dummy annotation marking that the value x escapes,
-// for use in cases where the reflect code is so clever that
-// the compiler cannot follow.
-func escapes(x any) {
-       if dummy.b {
-               dummy.x = x
-       }
-}
-
-var dummy struct {
-       b bool
-       x any
-}