Remove unused rb_shape_object_id_index
This commit is contained in:
parent
c9b08882b7
commit
a007575497
Notes:
git
2025-05-09 08:23:07 +00:00
10
shape.c
10
shape.c
@ -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)
|
||||
{
|
||||
|
1
shape.h
1
shape.h
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user