From c7af1e432aed4c4586dd1e62b0431c14fa44289d Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Sun, 5 Jan 2020 12:25:24 +0900 Subject: [PATCH] Remove unused tmp_buffer in class.c ref 44a164c26f5371519636585d8ba7aa59f489442e and beae6cbf0fd8b6619e5212552de98022d4c4d4d4 --- class.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/class.c b/class.c index cda43dec0e..66c149b6bf 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); }