From 6014ed99680fd3beb013dd8564f81f6c2f2a9f34 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Sun, 2 Nov 2025 13:45:26 -0500 Subject: Remove dead rb_hash_dump --- hash.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/hash.c b/hash.c index 97a303c4d5..a8be0bad75 100644 --- a/hash.c +++ b/hash.c @@ -492,37 +492,6 @@ RHASH_AR_TABLE_BOUND(VALUE h) #if HASH_DEBUG #define hash_verify(hash) hash_verify_(hash, __FILE__, __LINE__) -void -rb_hash_dump(VALUE hash) -{ - rb_obj_info_dump(hash); - - if (RHASH_AR_TABLE_P(hash)) { - unsigned i, bound = RHASH_AR_TABLE_BOUND(hash); - - fprintf(stderr, " size:%u bound:%u\n", - RHASH_AR_TABLE_SIZE(hash), bound); - - for (i=0; ikey; - v = pair->val; - fprintf(stderr, " %d key:%s val:%s hint:%02x\n", i, - rb_raw_obj_info(b1, 0x100, k), - rb_raw_obj_info(b2, 0x100, v), - ar_hint(hash, i)); - } - else { - fprintf(stderr, " %d empty\n", i); - } - } - } -} - static VALUE hash_verify_(VALUE hash, const char *file, int line) { -- cgit v1.2.3