Remove duplicated code in generic_ivar_set
There is a duplicated check for the object is too complex.
This commit is contained in:
parent
33795931a0
commit
944e0ae698
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user