ruby-changes:64283
From: Rados=C5=82aw <ko1@a...>
Date: Sat, 19 Dec 2020 00:04:41 +0900 (JST)
Subject: [ruby-changes:64283] ed5c09f384 (master): Remove unused variable
https://git.ruby-lang.org/ruby.git/commit/?id=ed5c09f384 From ed5c09f38459fe4a0f94c9e24358b21ff5f151c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Bu=C5=82at?= <radek.bulat@g...> Date: Mon, 9 Nov 2020 11:25:11 +0100 Subject: Remove unused variable diff --git a/process.c b/process.c index dee565e..0b2fdeb 100644 --- a/process.c +++ b/process.c @@ -2075,12 +2075,11 @@ check_exec_redirect1(VALUE ary, VALUE key, VALUE param) https://github.com/ruby/ruby/blob/trunk/process.c#L2075 rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param))); } else { - int i, n=0; + int i; for (i = 0 ; i < RARRAY_LEN(key); i++) { VALUE v = RARRAY_AREF(key, i); VALUE fd = check_exec_redirect_fd(v, !NIL_P(param)); rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param))); - n++; } } return ary; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/