From 34ee062d74ebfcbd04a0f2be2cdfda9cd8d20716 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Fri, 3 Jan 2025 10:37:22 -0500 Subject: [PATCH] Remove dead function rb_struct_const_heap_ptr --- internal/struct.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/struct.h b/internal/struct.h index 6da5bad10a..a8c773b730 100644 --- a/internal/struct.h +++ b/internal/struct.h @@ -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 */