aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reflect/value.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/reflect/value.go b/src/reflect/value.go
index 06f22f7428..8f163fce16 100644
--- a/src/reflect/value.go
+++ b/src/reflect/value.go
@@ -129,8 +129,6 @@ func packEface(v Value) any {
// Value is indirect, and so is the interface we're making.
ptr := v.ptr
if v.flag&flagAddr != 0 {
- // TODO: pass safe boolean from valueInterface so
- // we don't need to copy if safe==true?
c := unsafe_New(t)
typedmemmove(t, c, ptr)
ptr = c
@@ -1522,7 +1520,6 @@ func valueInterface(v Value, safe bool) any {
})(v.ptr)
}
- // TODO: pass safe to packEface so we don't need to copy if safe==true?
return packEface(v)
}