summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-05 12:25:24 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-05 12:26:48 +0900
commitc7af1e432aed4c4586dd1e62b0431c14fa44289d (patch)
tree78db7f97bc7168f211f800ff8cec4b501d3ed04e /class.c
parent787c6d591aa0a170d5f5b714df7aea6de6c5f0a2 (diff)
Remove unused tmp_buffer in class.c
ref 44a164c26f5371519636585d8ba7aa59f489442e and beae6cbf0fd8b6619e5212552de98022d4c4d4d4
Diffstat (limited to 'class.c')
-rw-r--r--class.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/class.c b/class.c
index cda43de..66c149b 100644
--- a/class.c
+++ b/class.c
@@ -1960,7 +1960,6 @@ struct rb_scan_args_t {
int argi;
VALUE hash;
VALUE last_hash;
- VALUE *tmp_buffer;
};
static void
@@ -2105,16 +2104,11 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
{
int error;
va_list vargs;
- VALUE tmp_buffer = 0;
struct rb_scan_args_t arg;
- arg.tmp_buffer = &tmp_buffer;
rb_scan_args_parse(RB_SCAN_ARGS_PASS_CALLED_KEYWORDS, argc, argv, fmt, &arg);
va_start(vargs,fmt);
error = rb_scan_args_assign(&arg, vargs);
va_end(vargs);
- if (tmp_buffer) {
- rb_free_tmp_buffer(&tmp_buffer);
- }
if (error) {
rb_error_arity(arg.argc, arg.n_mand, arg.f_var ? UNLIMITED_ARGUMENTS : arg.n_mand + arg.n_opt);
}
@@ -2126,16 +2120,11 @@ rb_scan_args_kw(int kw_flag, int argc, const VALUE *argv, const char *fmt, ...)
{
int error;
va_list vargs;
- VALUE tmp_buffer = 0;
struct rb_scan_args_t arg;
- arg.tmp_buffer = &tmp_buffer;
rb_scan_args_parse(kw_flag, argc, argv, fmt, &arg);
va_start(vargs,fmt);
error = rb_scan_args_assign(&arg, vargs);
va_end(vargs);
- if (tmp_buffer) {
- rb_free_tmp_buffer(&tmp_buffer);
- }
if (error) {
rb_error_arity(arg.argc, arg.n_mand, arg.f_var ? UNLIMITED_ARGUMENTS : arg.n_mand + arg.n_opt);
}