summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-05-08 20:30:30 +0200
committerJean Boussier <[email protected]>2025-05-09 10:22:51 +0200
commite0200cfba03bf7d23b6e298c35ca2636cbbdbd91 ()
treef38ade682e862be72229da0209e2372973306652 /shape.c
parent3f7c0af05191c6120db1617fef1d5be18151dfe6 (diff)
Refactor `rb_shape_transition_shape_remove_ivar` to not take a shape pointer
It's more consistent with other transition functions.
Notes: Merged: https://.com/ruby/ruby/pull/13283
-rw-r--r--shape.c4
1 files changed, 3 insertions, 1 deletions
@@ -645,8 +645,10 @@ remove_shape_recursive(rb_shape_t *shape, ID id, rb_shape_t **removed_shape)
}
bool
-rb_shape_transition_shape_remove_ivar(VALUE obj, ID id, rb_shape_t *shape, VALUE *removed)
{
if (UNLIKELY(rb_shape_too_complex_p(shape))) {
return false;
}