mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Get rid of TOO_COMPLEX shape type
Instead it's now a `shape_id` flag. This allows to check if an object is complex without having to chase the `rb_shape_t` pointer.
This commit is contained in:
parent
8d49c05c13
commit
675f33508c
Notes:
git
2025-06-04 11:14:02 +00:00
13 changed files with 82 additions and 118 deletions
|
@ -2240,10 +2240,6 @@ iterate_over_shapes_with_callback(rb_shape_t *shape, rb_ivar_foreach_callback_fu
|
|||
}
|
||||
}
|
||||
return false;
|
||||
case SHAPE_OBJ_TOO_COMPLEX:
|
||||
default:
|
||||
rb_bug("Unreachable");
|
||||
UNREACHABLE_RETURN(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue