From 9f9dca0c520eb3a2706aa1f6a042cf1fcc07233b Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 31 Jan 2023 13:33:51 -0500 Subject: Remove rb_hash_ar_table_p It's dead code and duplicate of RHASH_AR_TABLE_P. --- hash.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 56080a01df..6a448d4bf2 100644 --- a/hash.c +++ b/hash.c @@ -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) { -- cgit v1.2.1