From ed5c09f38459fe4a0f94c9e24358b21ff5f151c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Bu=C5=82at?= Date: Mon, 9 Nov 2020 11:25:11 +0100 Subject: [PATCH] Remove unused variable --- process.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/process.c b/process.c index dee565ede4..0b2fdeb840 100644 --- a/process.c +++ b/process.c @@ -2075,12 +2075,11 @@ check_exec_redirect1(VALUE ary, VALUE key, VALUE param) 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;