mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove unused src param from rb_shape_copy_fields
This commit is contained in:
parent
8cd5832694
commit
12b0ce3875
4 changed files with 4 additions and 4 deletions
2
object.c
2
object.c
|
@ -363,7 +363,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
|
|||
dest_buf = ROBJECT_FIELDS(dest);
|
||||
}
|
||||
|
||||
rb_shape_copy_fields(dest, dest_buf, dest_shape_id, obj, src_buf, src_shape_id);
|
||||
rb_shape_copy_fields(dest, dest_buf, dest_shape_id, src_buf, src_shape_id);
|
||||
rb_obj_set_shape_id(dest, dest_shape_id);
|
||||
}
|
||||
|
||||
|
|
2
shape.c
2
shape.c
|
@ -1136,7 +1136,7 @@ rb_shape_rebuild(shape_id_t initial_shape_id, shape_id_t dest_shape_id)
|
|||
}
|
||||
|
||||
void
|
||||
rb_shape_copy_fields(VALUE dest, VALUE *dest_buf, shape_id_t dest_shape_id, VALUE src, VALUE *src_buf, shape_id_t src_shape_id)
|
||||
rb_shape_copy_fields(VALUE dest, VALUE *dest_buf, shape_id_t dest_shape_id, VALUE *src_buf, shape_id_t src_shape_id)
|
||||
{
|
||||
rb_shape_t *dest_shape = RSHAPE(dest_shape_id);
|
||||
rb_shape_t *src_shape = RSHAPE(src_shape_id);
|
||||
|
|
2
shape.h
2
shape.h
|
@ -217,7 +217,7 @@ shape_id_t rb_shape_object_id(shape_id_t original_shape_id);
|
|||
void rb_shape_free_all(void);
|
||||
|
||||
shape_id_t rb_shape_rebuild(shape_id_t initial_shape_id, shape_id_t dest_shape_id);
|
||||
void rb_shape_copy_fields(VALUE dest, VALUE *dest_buf, shape_id_t dest_shape_id, VALUE src, VALUE *src_buf, shape_id_t src_shape_id);
|
||||
void rb_shape_copy_fields(VALUE dest, VALUE *dest_buf, shape_id_t dest_shape_id, VALUE *src_buf, shape_id_t src_shape_id);
|
||||
void rb_shape_copy_complex_ivars(VALUE dest, VALUE obj, shape_id_t src_shape_id, st_table *fields_table);
|
||||
|
||||
static inline bool
|
||||
|
|
|
@ -2331,7 +2331,7 @@ rb_copy_generic_ivar(VALUE dest, VALUE obj)
|
|||
new_fields_obj = rb_imemo_fields_new(rb_obj_class(dest), RSHAPE_CAPACITY(dest_shape_id));
|
||||
VALUE *src_buf = rb_imemo_fields_ptr(fields_obj);
|
||||
VALUE *dest_buf = rb_imemo_fields_ptr(new_fields_obj);
|
||||
rb_shape_copy_fields(new_fields_obj, dest_buf, dest_shape_id, obj, src_buf, src_shape_id);
|
||||
rb_shape_copy_fields(new_fields_obj, dest_buf, dest_shape_id, src_buf, src_shape_id);
|
||||
RBASIC_SET_SHAPE_ID(new_fields_obj, dest_shape_id);
|
||||
|
||||
RB_VM_LOCKING() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue