From e0200cfba03bf7d23b6e298c35ca2636cbbdbd91 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Thu, 8 May 2025 20:30:30 +0200 Subject: Refactor `rb_shape_transition_shape_remove_ivar` to not take a shape pointer It's more consistent with other transition functions. --- variable.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index f914e5a8f8..92206e4b11 100644 --- a/variable.c +++ b/variable.c @@ -1460,13 +1460,11 @@ rb_ivar_delete(VALUE obj, ID id, VALUE undef) rb_check_frozen(obj); VALUE val = undef; - rb_shape_t *shape = rb_shape_get_shape(obj); - if (BUILTIN_TYPE(obj) == T_CLASS || BUILTIN_TYPE(obj) == T_MODULE) { IVAR_ACCESSOR_SHOULD_BE_MAIN_RACTOR(id); } - if (!rb_shape_transition_shape_remove_ivar(obj, id, shape, &val)) { + if (!rb_shape_transition_remove_ivar(obj, id, &val)) { if (!rb_shape_obj_too_complex_p(obj)) { rb_evict_fields_to_hash(obj); } -- cgit v1.2.3