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:
Erik Berlin 2025-07-18 14:58:04 -07:00 committed by GitHub
parent 8df61bfc92
commit bd27460c06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

1
hash.c
View file

@ -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);
}