From 97f44ac54e197bca43b54dd65e116cb9ea22cda0 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Tue, 27 May 2025 12:58:24 +0200 Subject: [PATCH] Get rid of rb_shape_set_shape --- shape.c | 6 ------ shape.h | 1 - 2 files changed, 7 deletions(-) diff --git a/shape.c b/shape.c index 608dc71da3..20ff0d305b 100644 --- a/shape.c +++ b/shape.c @@ -930,12 +930,6 @@ rb_shape_get_iv_index(shape_id_t shape_id, ID id, attr_index_t *value) return true; } -void -rb_shape_set_shape(VALUE obj, rb_shape_t *shape) -{ - rb_shape_set_shape_id(obj, rb_shape_id(shape)); -} - int32_t rb_shape_id_offset(void) { diff --git a/shape.h b/shape.h index ef6c868896..017a27ef15 100644 --- a/shape.h +++ b/shape.h @@ -130,7 +130,6 @@ bool rb_shape_id_too_complex_p(shape_id_t shape_id); bool rb_shape_has_object_id(rb_shape_t *shape); bool rb_shape_id_has_object_id(shape_id_t shape_id); -void rb_shape_set_shape(VALUE obj, rb_shape_t *shape); shape_id_t rb_shape_transition_frozen(VALUE obj); shape_id_t rb_shape_transition_complex(VALUE obj); shape_id_t rb_shape_transition_remove_ivar(VALUE obj, ID id, shape_id_t *removed_shape_id);