mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
include/ruby/ruby.h: remove a variable tmp_buffer as it does not change
It is no longer used due to beae6cbf0f
.
Coverity Scan found this.
This commit is contained in:
parent
c7f01d889b
commit
44a164c26f
1 changed files with 0 additions and 3 deletions
|
@ -2520,7 +2520,6 @@ rb_scan_args_set(int argc, const VALUE *argv,
|
|||
int i, argi = 0, vari = 0;
|
||||
VALUE *var, hash = Qnil, last_hash = 0;
|
||||
const int n_mand = n_lead + n_trail;
|
||||
VALUE tmp_buffer = 0;
|
||||
|
||||
if (f_hash && argc > 0 && rb_keyword_given_p()) {
|
||||
hash = rb_hash_dup(argv[argc - 1]);
|
||||
|
@ -2589,11 +2588,9 @@ rb_scan_args_set(int argc, const VALUE *argv,
|
|||
|
||||
if (argi < argc) {
|
||||
argc_error:
|
||||
if (tmp_buffer) rb_free_tmp_buffer(&tmp_buffer);
|
||||
rb_error_arity(argc, n_mand, f_var ? UNLIMITED_ARGUMENTS : n_mand + n_opt);
|
||||
}
|
||||
|
||||
if (tmp_buffer) rb_free_tmp_buffer(&tmp_buffer);
|
||||
return argc;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue