aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhr@golang.org <khr@golang.org>2025-10-23 09:40:22 -0700
committerKeith Randall <khr@golang.org>2026-01-26 09:57:21 -0800
commitb04e7f31c8edc05be98afb6fdb40a20dafaa7e49 (patch)
treede71e3318c03791dc0f99c21060b5bd3131228bb
parentcc6923e839ff10581223a600fca805203d56acd5 (diff)
downloadgo-b04e7f31c8edc05be98afb6fdb40a20dafaa7e49.tar.xz
internal/reflectlite: remove unused code
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>
-rw-r--r--src/internal/reflectlite/value.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/internal/reflectlite/value.go b/src/internal/reflectlite/value.go
index a92df613f5..fac816546c 100644
--- a/src/internal/reflectlite/value.go
+++ b/src/internal/reflectlite/value.go
@@ -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
-}