Remove unused retval assignments

This commit is contained in:
Nobuyoshi Nakada 2025-05-14 10:26:04 +09:00
parent b66c5c3b1b
commit 7f5b4fb26e
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2025-05-14 02:42:50 +00:00

4
hash.c
View File

@ -880,7 +880,7 @@ ar_general_foreach(VALUE hash, st_foreach_check_callback_func *func, st_update_c
return 0;
case ST_REPLACE:
if (replace) {
retval = (*replace)(&key, &val, arg, TRUE);
(*replace)(&key, &val, arg, TRUE);
// TODO: pair should be same as pair before.
pair = RHASH_AR_TABLE_REF(hash, i);
@ -951,7 +951,7 @@ ar_foreach_check(VALUE hash, st_foreach_check_callback_func *func, st_data_t arg
if (pair->key == never) break;
ret = ar_find_entry_hint(hash, hint, key);
if (ret == RHASH_AR_TABLE_MAX_BOUND) {
retval = (*func)(0, 0, arg, 1);
(*func)(0, 0, arg, 1);
return 2;
}
}