Remove unused rb_shape_object_id_index

This commit is contained in:
Jean Boussier 2025-05-08 20:50:02 +02:00
parent c9b08882b7
commit a007575497
Notes: git 2025-05-09 08:23:07 +00:00
2 changed files with 0 additions and 11 deletions

10
shape.c
View File

@ -757,16 +757,6 @@ rb_shape_has_object_id(rb_shape_t *shape)
return shape->flags & SHAPE_FL_HAS_OBJECT_ID;
}
attr_index_t
rb_shape_object_id_index(rb_shape_t *shape)
{
RUBY_ASSERT(shape->flags & SHAPE_FL_HAS_OBJECT_ID);
while (shape->type != SHAPE_OBJ_ID) {
shape = rb_shape_get_parent(shape);
}
return shape->next_field_index - 1;
}
rb_shape_t *
rb_shape_object_id_shape(VALUE obj)
{

View File

@ -173,7 +173,6 @@ shape_id_t rb_shape_transition_add_ivar_no_warnings(VALUE obj, ID id);
rb_shape_t *rb_shape_object_id_shape(VALUE obj);
bool rb_shape_has_object_id(rb_shape_t *shape);
attr_index_t rb_shape_object_id_index(rb_shape_t *shape);
void rb_shape_free_all(void);
rb_shape_t *rb_shape_rebuild_shape(rb_shape_t *initial_shape, rb_shape_t *dest_shape);