summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-21 12:58:14 +0900
committerKoichi Sasada <ko1@atdot.net>2021-12-15 15:04:34 +0900
commita4a3528eb7cf8d085a53bd34dafe2e59059b4d1b (patch)
tree6f13a349985de693f5d404ccba5bd2af698bb802
parenta6ebc10532db1470372fd89a0ce48b822d25bd01 (diff)
Removed no longer used variables
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5263
-rw-r--r--hash.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/hash.c b/hash.c
index 22300ed85d..9b21f74654 100644
--- a/hash.c
+++ b/hash.c
@@ -5490,7 +5490,6 @@ static VALUE
env_values(void)
{
VALUE ary;
- char **env;
ary = rb_ary_new();
rb_native_mutex_lock(&env_lock);
@@ -5579,7 +5578,6 @@ env_each_value(VALUE ehash)
static VALUE
env_each_pair(VALUE ehash)
{
- char **env;
VALUE ary;
long i;
@@ -5939,7 +5937,6 @@ env_to_s(VALUE _)
static VALUE
env_inspect(VALUE _)
{
- char **env;
VALUE str, i;
str = rb_str_buf_new2("{");
@@ -5981,7 +5978,6 @@ env_inspect(VALUE _)
static VALUE
env_to_a(VALUE _)
{
- char **env;
VALUE ary;
ary = rb_ary_new();
@@ -6226,7 +6222,6 @@ env_rassoc(VALUE dmy, VALUE obj)
static VALUE
env_key(VALUE dmy, VALUE value)
{
- char **env;
VALUE str;
SafeStringValue(value);
@@ -6246,7 +6241,6 @@ env_key(VALUE dmy, VALUE value)
return str;
}
}
- env++;
}
return Qnil;
}
@@ -6254,7 +6248,6 @@ env_key(VALUE dmy, VALUE value)
static VALUE
env_to_hash(void)
{
- char **env;
VALUE hash;
hash = rb_hash_new();