mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove unnecessary assignments to local variables in f_arg_asgn
Local variables are not reassigned and are not needed.
This commit is contained in:
parent
3260b0b647
commit
2b1db0faec
Notes:
git
2025-01-21 11:25:55 +00:00
1 changed files with 1 additions and 2 deletions
3
parse.y
3
parse.y
|
@ -6486,8 +6486,7 @@ f_norm_arg : f_bad_arg
|
|||
|
||||
f_arg_asgn : f_norm_arg
|
||||
{
|
||||
ID id = $1;
|
||||
arg_var(p, id);
|
||||
arg_var(p, $1);
|
||||
$$ = $1;
|
||||
}
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue