From bd27460c0629e807aaed15dd1573367b5f9cda3f Mon Sep 17 00:00:00 2001 From: Erik Berlin Date: Fri, 18 Jul 2025 14:58:04 -0700 Subject: [PATCH] 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. --- hash.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hash.c b/hash.c index 182b277f52..b144b18690 100644 --- a/hash.c +++ b/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); }