From b77551adee831302f22dc7d9fdccd597923511c4 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 1 Dec 2023 15:21:01 -0500 Subject: [PATCH] Remove unneeded local variables --- gc.c | 2 -- 1 file changed, 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