Remove dead function rb_struct_const_heap_ptr

This commit is contained in:
Peter Zhu committed 2025-01-03 17:02:50 -05:00
1 parent 6b2b537e35
commit 34ee062d74
1 file changed
-8
Notes: git 2025-01-03 22:03:09 +00:00
-8
View File
@@ -59,7 +59,6 @@ struct RStruct {
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
VALUE rb_struct_lookup(VALUE s, VALUE idx);
VALUE rb_struct_s_keyword_init(VALUE klass);
static inline const VALUE *rb_struct_const_heap_ptr(VALUE st);
static inline long RSTRUCT_EMBED_LEN(VALUE st);
static inline long RSTRUCT_LEN(VALUE st);
static inline int RSTRUCT_LENINT(VALUE st);
@@ -117,11 +116,4 @@ RSTRUCT_GET(VALUE st, long k)
return RSTRUCT_CONST_PTR(st)[k];
}
static inline const VALUE *
rb_struct_const_heap_ptr(VALUE st)
{
assert(!FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK));
return RSTRUCT(st)->as.heap.ptr;
}
#endif /* INTERNAL_STRUCT_H */