mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove rehash checking TODO (GH-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.
This commit is contained in:
parent
8df61bfc92
commit
bd27460c06
1 changed files with 0 additions and 1 deletions
1
hash.c
1
hash.c
|
@ -1301,7 +1301,6 @@ hash_ar_foreach_iter(st_data_t key, st_data_t value, st_data_t argp, int error)
|
|||
if (error) return ST_STOP;
|
||||
|
||||
int status = (*arg->func)((VALUE)key, (VALUE)value, arg->arg);
|
||||
/* TODO: rehash check? rb_raise(rb_eRuntimeError, "rehash occurred during iteration"); */
|
||||
|
||||
return hash_iter_status_check(status);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue