зеркало из https://github.com/github/ruby.git
Remove unused function rb_shape_transition_shape
This commit is contained in:
Родитель
1221c77489
Коммит
6dd1a5f532
10
shape.c
10
shape.c
|
@ -212,16 +212,6 @@ rb_shape_transition_shape_frozen(VALUE obj)
|
|||
rb_shape_set_shape(obj, next_shape);
|
||||
}
|
||||
|
||||
void
|
||||
rb_shape_transition_shape(VALUE obj, ID id, rb_shape_t *shape)
|
||||
{
|
||||
rb_shape_t* next_shape = rb_shape_get_next(shape, obj, id);
|
||||
if (shape == next_shape) {
|
||||
return;
|
||||
}
|
||||
rb_shape_set_shape(obj, next_shape);
|
||||
}
|
||||
|
||||
/*
|
||||
* This function is used for assertions where we don't want to increment
|
||||
* max_iv_count
|
||||
|
|
1
shape.h
1
shape.h
|
@ -144,7 +144,6 @@ int rb_shape_frozen_shape_p(rb_shape_t* shape);
|
|||
void rb_shape_transition_shape_frozen(VALUE obj);
|
||||
void rb_shape_transition_shape_remove_ivar(VALUE obj, ID id, rb_shape_t *shape);
|
||||
rb_shape_t * rb_shape_transition_shape_capa(rb_shape_t * shape, uint32_t new_capacity);
|
||||
void rb_shape_transition_shape(VALUE obj, ID id, rb_shape_t *shape);
|
||||
rb_shape_t * rb_shape_get_next_iv_shape(rb_shape_t * shape, ID id);
|
||||
rb_shape_t* rb_shape_get_next(rb_shape_t* shape, VALUE obj, ID id);
|
||||
bool rb_shape_get_iv_index(rb_shape_t * shape, ID id, attr_index_t * value);
|
||||
|
|
Загрузка…
Ссылка в новой задаче