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

ruby-changes:60000

From: Jeremy <ko1@a...>
Date: Wed, 12 Feb 2020 01:47:00 +0900 (JST)
Subject: [ruby-changes:60000] 50065dad7f (master): Remove rb_eval_cmd

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

From 50065dad7f955cd069e43a83793a7ca3cff96b26 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Sun, 9 Feb 2020 19:06:57 -0800
Subject: Remove rb_eval_cmd

This was related to $SAFE, and was deprecated in 2.7.  I missed it
earlier when removing the other $SAFE-related code.

diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index ecceef3..944f433 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -434,7 +434,6 @@ void rb_alias(VALUE, ID, ID); https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L434
 void rb_attr(VALUE,ID,int,int,int);
 int rb_method_boundp(VALUE, ID, int);
 int rb_method_basic_definition_p(VALUE, ID);
-VALUE rb_eval_cmd(VALUE, VALUE, int);
 VALUE rb_eval_cmd_kw(VALUE, VALUE, int);
 int rb_obj_respond_to(VALUE, ID, int);
 int rb_respond_to(VALUE, ID);
diff --git a/vm_eval.c b/vm_eval.c
index 85c317d..5d89a3d 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1748,13 +1748,6 @@ rb_eval_cmd_kw(VALUE cmd, VALUE arg, int kw_splat) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1748
     return val;
 }
 
-VALUE
-rb_eval_cmd(VALUE cmd, VALUE arg, int _level)
-{
-    rb_warn("rb_eval_cmd will be removed in Ruby 3.0");
-    return rb_eval_cmd_kw(cmd, arg, RB_NO_KEYWORDS);
-}
-
 /* block eval under the class/module context */
 
 static VALUE
-- 
cgit v0.10.2


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

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