Skip to content

Commit b04e7f3

Browse files
committed
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>
1 parent cc6923e commit b04e7f3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/internal/reflectlite/value.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -464,17 +464,3 @@ func ifaceE2I(t *abi.Type, src any, dst unsafe.Pointer)
464464
//
465465
//go:noescape
466466
func typedmemmove(t *abi.Type, dst, src unsafe.Pointer)
467-
468-
// Dummy annotation marking that the value x escapes,
469-
// for use in cases where the reflect code is so clever that
470-
// the compiler cannot follow.
471-
func escapes(x any) {
472-
if dummy.b {
473-
dummy.x = x
474-
}
475-
}
476-
477-
var dummy struct {
478-
b bool
479-
x any
480-
}

0 commit comments

Comments
 (0)