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

ruby-changes:57512

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 3 Sep 2019 14:43:39 +0900 (JST)
Subject: [ruby-changes:57512] e913fa94d3 (master): delete ruby_eval_string_from_file_protect

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

From e913fa94d30e5d3007fe52f5d7840576c0f86c78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Tue, 3 Sep 2019 12:18:36 +0900
Subject: delete ruby_eval_string_from_file_protect

Not used from anywhere.

diff --git a/vm_eval.c b/vm_eval.c
index a31f486..e0c308a 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1429,27 +1429,6 @@ ruby_eval_string_from_file(const char *str, const char *filename) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1429
     return eval_string_with_cref(rb_vm_top_self(), rb_str_new2(str), NULL, file, 1);
 }
 
-struct eval_string_from_file_arg {
-    VALUE str;
-    VALUE filename;
-};
-
-static VALUE
-eval_string_from_file_helper(VALUE data)
-{
-    const struct eval_string_from_file_arg *const arg = (struct eval_string_from_file_arg*)data;
-    return eval_string_with_cref(rb_vm_top_self(), arg->str, NULL, arg->filename, 1);
-}
-
-VALUE
-ruby_eval_string_from_file_protect(const char *str, const char *filename, int *state)
-{
-    struct eval_string_from_file_arg arg;
-    arg.str = rb_str_new_cstr(str);
-    arg.filename = filename ? rb_str_new_cstr(filename) : 0;
-    return rb_protect(eval_string_from_file_helper, (VALUE)&arg, state);
-}
-
 /**
  * Evaluates the given string in an isolated binding.
  *
-- 
cgit v0.10.2


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

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