Remove unused function size_pool_for_size
``` compiling ../gc.c ../gc.c:2444:1: warning: unused function 'size_pool_for_size' [-Wunused-function] size_pool_for_size(rb_objspace_t *objspace, size_t size) ^ 1 warning generated. ```
This commit is contained in:
parent
0a1b3b3a67
commit
04951a1226
Notes:
git
2021-11-26 20:13:17 +09:00
14
gc.c
14
gc.c
@ -2443,20 +2443,6 @@ size_pool_idx_for_size(size_t size)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if USE_RVARGC
|
|
||||||
static inline rb_size_pool_t *
|
|
||||||
size_pool_for_size(rb_objspace_t *objspace, size_t size)
|
|
||||||
{
|
|
||||||
size_t size_pool_idx = size_pool_idx_for_size(size);
|
|
||||||
|
|
||||||
rb_size_pool_t *size_pool = &size_pools[size_pool_idx];
|
|
||||||
GC_ASSERT(size_pool->slot_size >= (short)size);
|
|
||||||
GC_ASSERT(size_pool_idx == 0 || size_pools[size_pool_idx - 1].slot_size < (short)size);
|
|
||||||
|
|
||||||
return size_pool;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ALWAYS_INLINE(static VALUE newobj_slowpath(VALUE klass, VALUE flags, rb_objspace_t *objspace, rb_ractor_t *cr, int wb_protected, size_t size_pool_idx));
|
ALWAYS_INLINE(static VALUE newobj_slowpath(VALUE klass, VALUE flags, rb_objspace_t *objspace, rb_ractor_t *cr, int wb_protected, size_t size_pool_idx));
|
||||||
|
|
||||||
static inline VALUE
|
static inline VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user