diff options
author | Peter Zhu <[email protected]> | 2025-01-03 10:37:22 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-01-03 17:02:50 -0500 |
commit | 34ee062d74ebfcbd04a0f2be2cdfda9cd8d20716 (patch) | |
tree | c0272ba4503a7d940c399856c73cfc281d8dfa8f | |
parent | 6b2b537e35e5dc1c9457568969ccd78b7a5f28cf (diff) |
Remove dead function rb_struct_const_heap_ptr
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12502
-rw-r--r-- | internal/struct.h | 8 |
1 files changed, 0 insertions, 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 */ |