Skip to content

Commit 32899a3

Browse files
committed
Remove rehash checking code
1 parent 0fdb44b commit 32899a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

hash.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,11 +1300,7 @@ hash_ar_foreach_iter(st_data_t key, st_data_t value, st_data_t argp, int error)
13001300

13011301
if (error) return ST_STOP;
13021302

1303-
unsigned bound = RHASH_AR_TABLE_BOUND(arg->hash);
13041303
int status = (*arg->func)((VALUE)key, (VALUE)value, arg->arg);
1305-
if (!RHASH_AR_TABLE_P(arg->hash) || RHASH_AR_TABLE_BOUND(arg->hash) > bound) {
1306-
rb_raise(rb_eRuntimeError, "rehash occurred during iteration");
1307-
}
13081304

13091305
return hash_iter_status_check(status);
13101306
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy