[前][次][番号順一覧][スレッド一覧]

ruby-changes:70229

From: Nobuyoshi <ko1@a...>
Date: Wed, 15 Dec 2021 15:04:58 +0900 (JST)
Subject: [ruby-changes:70229] a4a3528eb7 (master): Removed no longer used variables

https://git.ruby-lang.org/ruby.git/commit/?id=a4a3528eb7

From a4a3528eb7cf8d085a53bd34dafe2e59059b4d1b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 21 Jul 2021 12:58:14 +0900
Subject: Removed no longer used variables

---
 hash.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/hash.c b/hash.c
index 22300ed85d6..9b21f746548 100644
--- a/hash.c
+++ b/hash.c
@@ -5490,7 +5490,6 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/hash.c#L5490
 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) https://github.com/ruby/ruby/blob/trunk/hash.c#L5578
 static VALUE
 env_each_pair(VALUE ehash)
 {
-    char **env;
     VALUE ary;
     long i;
 
@@ -5939,7 +5937,6 @@ env_to_s(VALUE _) https://github.com/ruby/ruby/blob/trunk/hash.c#L5937
 static VALUE
 env_inspect(VALUE _)
 {
-    char **env;
     VALUE str, i;
 
     str = rb_str_buf_new2("{");
@@ -5981,7 +5978,6 @@ env_inspect(VALUE _) https://github.com/ruby/ruby/blob/trunk/hash.c#L5978
 static VALUE
 env_to_a(VALUE _)
 {
-    char **env;
     VALUE ary;
 
     ary = rb_ary_new();
@@ -6226,7 +6222,6 @@ env_rassoc(VALUE dmy, VALUE obj) https://github.com/ruby/ruby/blob/trunk/hash.c#L6222
 static VALUE
 env_key(VALUE dmy, VALUE value)
 {
-    char **env;
     VALUE str;
 
     SafeStringValue(value);
@@ -6246,7 +6241,6 @@ env_key(VALUE dmy, VALUE value) https://github.com/ruby/ruby/blob/trunk/hash.c#L6241
 		return str;
 	    }
 	}
-	env++;
     }
     return Qnil;
 }
@@ -6254,7 +6248,6 @@ env_key(VALUE dmy, VALUE value) https://github.com/ruby/ruby/blob/trunk/hash.c#L6248
 static VALUE
 env_to_hash(void)
 {
-    char **env;
     VALUE hash;
 
     hash = rb_hash_new();
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]