Skip to content

Commit 6014ed9

Browse files
committed
Remove dead rb_hash_dump
1 parent 00c9a21 commit 6014ed9

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

hash.c

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -492,37 +492,6 @@ RHASH_AR_TABLE_BOUND(VALUE h)
492492
#if HASH_DEBUG
493493
#define hash_verify(hash) hash_verify_(hash, __FILE__, __LINE__)
494494

495-
void
496-
rb_hash_dump(VALUE hash)
497-
{
498-
rb_obj_info_dump(hash);
499-
500-
if (RHASH_AR_TABLE_P(hash)) {
501-
unsigned i, bound = RHASH_AR_TABLE_BOUND(hash);
502-
503-
fprintf(stderr, " size:%u bound:%u\n",
504-
RHASH_AR_TABLE_SIZE(hash), bound);
505-
506-
for (i=0; i<bound; i++) {
507-
st_data_t k, v;
508-
509-
if (!ar_cleared_entry(hash, i)) {
510-
char b1[0x100], b2[0x100];
511-
ar_table_pair *pair = RHASH_AR_TABLE_REF(hash, i);
512-
k = pair->key;
513-
v = pair->val;
514-
fprintf(stderr, " %d key:%s val:%s hint:%02x\n", i,
515-
rb_raw_obj_info(b1, 0x100, k),
516-
rb_raw_obj_info(b2, 0x100, v),
517-
ar_hint(hash, i));
518-
}
519-
else {
520-
fprintf(stderr, " %d empty\n", i);
521-
}
522-
}
523-
}
524-
}
525-
526495
static VALUE
527496
hash_verify_(VALUE hash, const char *file, int line)
528497
{

0 commit comments

Comments
 (0)