diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-04-17 15:56:08 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-04-18 10:19:42 -0400 |
| commit | 81240493a32fc36182338eb0969203e57487a5ad (patch) | |
| tree | 156ccf9cbb3e252e769ba30d31ca8b59273892a1 | |
| parent | 28efc0c9248f942bd45047bc68bf1c9e00e469f0 (diff) | |
Remove unused rb_size_pool_slot_size
| -rw-r--r-- | gc.c | 8 | ||||
| -rw-r--r-- | internal/gc.h | 2 |
2 files changed, 1 insertions, 9 deletions
@@ -2693,12 +2693,6 @@ size_pool_slot_size(unsigned char pool_id) return slot_size; } -size_t -rb_size_pool_slot_size(unsigned char pool_id) -{ - return size_pool_slot_size(pool_id); -} - bool rb_gc_size_allocatable_p(size_t size) { @@ -2712,7 +2706,7 @@ rb_gc_size_pool_sizes(void) { if (size_pool_sizes[0] == 0) { for (unsigned char i = 0; i < SIZE_POOL_COUNT; i++) { - size_pool_sizes[i] = rb_size_pool_slot_size(i); + size_pool_sizes[i] = size_pool_slot_size(i); } } diff --git a/internal/gc.h b/internal/gc.h index 91dbc0ccf3..7ec55a0624 100644 --- a/internal/gc.h +++ b/internal/gc.h @@ -119,8 +119,6 @@ int ruby_get_stack_grow_direction(volatile VALUE *addr); const char *rb_obj_info(VALUE obj); const char *rb_raw_obj_info(char *const buff, const size_t buff_size, VALUE obj); -size_t rb_size_pool_slot_size(unsigned char pool_id); - struct rb_execution_context_struct; /* in vm_core.h */ struct rb_objspace; /* in vm_core.h */ |
