aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-12-01 15:21:01 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-12-01 15:21:01 -0500
commitb77551adee831302f22dc7d9fdccd597923511c4 (patch)
tree391674d9f6699458c8e112081bd66f284a4311c1 /gc.c
parent562d949e022cb3e7288256af8d0df3f4e17b66cb (diff)
downloadruby-b77551adee831302f22dc7d9fdccd597923511c4.tar.gz
Remove unneeded local variables
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 9282f8a136..ebfd1d961b 100644
--- a/gc.c
+++ b/gc.c
@@ -10707,9 +10707,7 @@ gc_update_object_references(rb_objspace_t *objspace, VALUE obj)
case T_STRING:
{
if (STR_SHARED_P(obj)) {
- VALUE old_root = any->as.string.as.heap.aux.shared;
UPDATE_IF_MOVED(objspace, any->as.string.as.heap.aux.shared);
- VALUE new_root = any->as.string.as.heap.aux.shared;
}
/* If, after move the string is not embedded, and can fit in the