Skip to content

Commit bd27460

Browse files
authored
Remove rehash checking TODO (rubyGH-13919)
Hash#rehash checks for rehash during iteration, and there seems to be no efficient way to check for it after the fact, so remove the TODO.
1 parent 8df61bf commit bd27460

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

hash.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,6 @@ hash_ar_foreach_iter(st_data_t key, st_data_t value, st_data_t argp, int error)
13011301
if (error) return ST_STOP;
13021302

13031303
int status = (*arg->func)((VALUE)key, (VALUE)value, arg->arg);
1304-
/* TODO: rehash check? rb_raise(rb_eRuntimeError, "rehash occurred during iteration"); */
13051304

13061305
return hash_iter_status_check(status);
13071306
}

0 commit comments

Comments
 (0)