We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00c9a21 commit 6014ed9Copy full SHA for 6014ed9
hash.c
@@ -492,37 +492,6 @@ RHASH_AR_TABLE_BOUND(VALUE h)
492
#if HASH_DEBUG
493
#define hash_verify(hash) hash_verify_(hash, __FILE__, __LINE__)
494
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
526
static VALUE
527
hash_verify_(VALUE hash, const char *file, int line)
528
{
0 commit comments