10000 Remove unused retval assignments · github/ruby@22f2047 · GitHub
[go: up one dir, main page]

Skip to content

Commit 22f2047

Browse files
nobuk0kubun
authored andcommitted
Remove unused retval assignments
1 parent fbcb327 commit 22f2047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ ar_general_foreach(VALUE hash, st_foreach_check_callback_func *func, st_update_c
880880
return 0;
881881
case ST_REPLACE:
882882
if (replace) {
883-
retval = (*replace)(&key, &val, arg, TRUE);
883+
(*replace)(&key, &val, arg, TRUE);
884884

885885
// TODO: pair should be same as pair before.
886886
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
951951
if (pair->key == never) break;
952952
ret = ar_find_entry_hint(hash, hint, key);
953953
if (ret == RHASH_AR_TABLE_MAX_BOUND) {
954-
retval = (*func)(0, 0, arg, 1);
954+
(*func)(0, 0, arg, 1);
955955
return 2;
956956
}
957957
}

0 commit comments

Comments
 (0)
0