mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove unused retval assignments
This commit is contained in:
parent
b66c5c3b1b
commit
7f5b4fb26e
Notes:
git
2025-05-14 02:42:50 +00:00
1 changed files with 2 additions and 2 deletions
4
hash.c
4
hash.c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue