aboutsummaryrefslogtreecommitdiffstats
path: root/variable.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-11-02 08:46:54 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-11-02 08:46:54 -0400
commit944e0ae6982634456d0a394fe5a0f72c8cd8984b (patch)
tree15c6257157a5721c0f1f6d551aaced6b55c8fd3d /variable.c
parent33795931a021c6abebe2c60864d88b8f4644ff70 (diff)
downloadruby-944e0ae6982634456d0a394fe5a0f72c8cd8984b.tar.gz
Remove duplicated code in generic_ivar_set
There is a duplicated check for the object is too complex.
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/variable.c b/variable.c
index ec3ee60b2d..0d18a72347 100644
--- a/variable.c
+++ b/variable.c
@@ -1515,11 +1515,6 @@ generic_ivar_set(VALUE obj, ID id, VALUE val)
struct ivar_update ivup;
attr_index_t index;
- // The returned shape will have `id` in its iv_table
- if (rb_shape_obj_too_complex(obj)) {
- rb_complex_ivar_set(obj, id, val);
- return;
- }
rb_shape_t *shape = rb_shape_get_shape(obj);
if (UNLIKELY(shape->type == SHAPE_OBJ_TOO_COMPLEX)) {