From 05f840d641f70e1c3ed8f84fb9088ca8c90d8a41 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 3 Jul 2024 14:44:31 -0400 Subject: [PATCH] Remove unused obj_info_basic --- gc.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gc.c b/gc.c index 00057e5a5b..3234251fb7 100644 --- a/gc.c +++ b/gc.c @@ -4192,19 +4192,6 @@ gc_raw_obj_info_basic(char *const buff, const size_t buff_size, VALUE obj) return buff; } - -static const char * -obj_info_basic(VALUE obj) -{ - rb_atomic_t index = atomic_inc_wraparound(&obj_info_buffers_index, OBJ_INFO_BUFFERS_NUM); - char *const buff = obj_info_buffers[index]; - - asan_unpoisoning_object(obj) { - rb_raw_obj_info_common(buff, OBJ_INFO_BUFFERS_SIZE, obj); - } - - return buff; -} #else static const char * obj_info(VALUE obj)