зеркало из https://github.com/github/ruby.git
Remove dead code in shapes.c and shapes.h
This commit is contained in:
Родитель
2e0f3b5546
Коммит
c4cc3be195
16
shape.c
16
shape.c
|
@ -33,12 +33,6 @@ rb_shape_id(rb_shape_t * shape)
|
|||
return (shape_id_t)(shape - GET_VM()->shape_list);
|
||||
}
|
||||
|
||||
bool
|
||||
rb_shape_root_shape_p(rb_shape_t* shape)
|
||||
{
|
||||
return shape == rb_shape_get_root_shape();
|
||||
}
|
||||
|
||||
void
|
||||
rb_shape_each_shape(each_shape_callback callback, void *data)
|
||||
{
|
||||
|
@ -60,16 +54,6 @@ rb_shape_get_shape_by_id(shape_id_t shape_id)
|
|||
return shape;
|
||||
}
|
||||
|
||||
rb_shape_t*
|
||||
rb_shape_get_shape_by_id_without_assertion(shape_id_t shape_id)
|
||||
{
|
||||
RUBY_ASSERT(shape_id != INVALID_SHAPE_ID);
|
||||
|
||||
rb_vm_t *vm = GET_VM();
|
||||
rb_shape_t *shape = &vm->shape_list[shape_id];
|
||||
return shape;
|
||||
}
|
||||
|
||||
rb_shape_t *
|
||||
rb_shape_get_parent(rb_shape_t * shape)
|
||||
{
|
||||
|
|
3
shape.h
3
shape.h
|
@ -126,12 +126,9 @@ static inline shape_id_t RCLASS_SHAPE_ID(VALUE obj)
|
|||
|
||||
#endif
|
||||
|
||||
bool rb_shape_root_shape_p(rb_shape_t* shape);
|
||||
rb_shape_t * rb_shape_get_root_shape(void);
|
||||
uint8_t rb_shape_id_num_bits(void);
|
||||
int32_t rb_shape_id_offset(void);
|
||||
|
||||
rb_shape_t* rb_shape_get_shape_by_id_without_assertion(shape_id_t shape_id);
|
||||
rb_shape_t * rb_shape_get_parent(rb_shape_t * shape);
|
||||
|
||||
MJIT_SYMBOL_EXPORT_BEGIN
|
||||
|
|
Загрузка…
Ссылка в новой задаче