Remove dead function rb_struct_const_heap_ptr
This commit is contained in:
parent
6b2b537e35
commit
34ee062d74
Notes:
git
2025-01-03 22:03:09 +00:00
@ -59,7 +59,6 @@ struct RStruct {
|
|||||||
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
|
VALUE rb_struct_init_copy(VALUE copy, VALUE s);
|
||||||
VALUE rb_struct_lookup(VALUE s, VALUE idx);
|
VALUE rb_struct_lookup(VALUE s, VALUE idx);
|
||||||
VALUE rb_struct_s_keyword_init(VALUE klass);
|
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_EMBED_LEN(VALUE st);
|
||||||
static inline long RSTRUCT_LEN(VALUE st);
|
static inline long RSTRUCT_LEN(VALUE st);
|
||||||
static inline int RSTRUCT_LENINT(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];
|
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 */
|
#endif /* INTERNAL_STRUCT_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user