diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-01-31 13:33:51 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-01-31 15:48:09 -0500 |
commit | 9f9dca0c520eb3a2706aa1f6a042cf1fcc07233b (patch) | |
tree | c7102020e7f9418ffee5de47e0dd96407a16d63c /hash.c | |
parent | 2296b877d800bfeafb59df7e60c7eddd8f0a2ae3 (diff) |
Remove rb_hash_ar_table_p
It's dead code and duplicate of RHASH_AR_TABLE_P.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7211
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -567,18 +567,6 @@ RHASH_TABLE_EMPTY_P(VALUE hash) return RHASH_SIZE(hash) == 0; } -int -rb_hash_ar_table_p(VALUE hash) -{ - if (FL_TEST_RAW((hash), RHASH_ST_TABLE_FLAG)) { - HASH_ASSERT(RHASH(hash)->as.st != NULL); - return FALSE; - } - else { - return TRUE; - } -} - void rb_hash_st_table_set(VALUE hash, st_table *st) { |