diff options
author | Peter Zhu <[email protected]> | 2023-01-31 13:29:18 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-01-31 15:48:09 -0500 |
commit | 2866f951c5a2ba940d21ef7232143dd862a26c20 (patch) | |
tree | 53241c3c6d9fbb4efcdd94b00bf0859d683bb340 /internal/hash.h | |
parent | e11067ebbfcf2c2422a5d00b50306782a9d86364 (diff) |
Remove rb_hash_ar_table
It's dead code and duplicate of RHASH_AR_TABLE.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7211
Diffstat (limited to 'internal/hash.h')
-rw-r--r-- | internal/hash.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/hash.h b/internal/hash.h index 0a87dae349..1c9e4e170a 100644 --- a/internal/hash.h +++ b/internal/hash.h @@ -120,30 +120,6 @@ MJIT_SYMBOL_EXPORT_END VALUE rb_hash_compare_by_id(VALUE hash); -#if 0 /* for debug */ - -static inline bool -RHASH_AR_TABLE_P(VALUE h) -{ - extern int rb_hash_ar_table_p(VALUE hash); - return rb_hash_ar_table_p(h) -} - -static inline struct ar_table_struct * -RHASH_AR_TABLE(VALUE h) -{ - extern struct ar_table_struct *rb_hash_ar_table(VALUE hash); - return rb_hash_ar_table(h) -} - -static inline st_table * -RHASH_ST_TABLE(VALUE h) -{ - return rb_hash_st_table(h) -} - -#else - static inline bool RHASH_AR_TABLE_P(VALUE h) { @@ -162,8 +138,6 @@ RHASH_ST_TABLE(VALUE h) return RHASH(h)->as.st; } -#endif - static inline VALUE RHASH_IFNONE(VALUE h) { |