summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2022-10-19 09:30:41 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2022-10-19 11:06:19 -0700
commit0aaa6133ed7365e5037ccdac8b59b00fb13aa50e (patch)
treec5fbd725f7534b08a32b304beeb9fea954a1b1e7 /shape.c
parent5ca23caa2057fc4760fbefab6087371b11c4bc6c (diff)
downloadruby-0aaa6133ed7365e5037ccdac8b59b00fb13aa50e.tar.gz
Transition frozen string to frozen root shape
Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/shape.c b/shape.c
index 1b0f1a5dc9..a7a800ca3c 100644
--- a/shape.c
+++ b/shape.c
@@ -203,14 +203,6 @@ rb_shape_transition_shape_frozen(VALUE obj)
rb_shape_t* next_shape;
if (shape == rb_shape_get_root_shape()) {
- switch (BUILTIN_TYPE(obj)) {
- case T_OBJECT:
- case T_CLASS:
- case T_MODULE:
- break;
- default:
- return;
- }
next_shape = rb_shape_get_frozen_root_shape();
}
else {