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

ruby-changes:63046

From: Hiroshi <ko1@a...>
Date: Wed, 23 Sep 2020 09:09:53 +0900 (JST)
Subject: [ruby-changes:63046] e380f78851 (master): Removed rb_find_file_ext_safe and rb_find_file_safe

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

From e380f78851b27511f165bcd841626f2cb9fa87be Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sat, 12 Sep 2020 08:55:14 +0900
Subject: Removed rb_find_file_ext_safe and rb_find_file_safe


diff --git a/file.c b/file.c
index d9b113e..0c599b0 100644
--- a/file.c
+++ b/file.c
@@ -6302,13 +6302,6 @@ copy_path_class(VALUE path, VALUE orig) https://github.com/ruby/ruby/blob/trunk/file.c#L6302
 }
 
 int
-rb_find_file_ext_safe(VALUE *filep, const char *const *ext, int _level)
-{
-    rb_warn("rb_find_file_ext_safe will be removed in Ruby 3.0");
-    return rb_find_file_ext(filep, ext);
-}
-
-int
 rb_find_file_ext(VALUE *filep, const char *const *ext)
 {
     const char *f = StringValueCStr(*filep);
@@ -6368,13 +6361,6 @@ rb_find_file_ext(VALUE *filep, const char *const *ext) https://github.com/ruby/ruby/blob/trunk/file.c#L6361
 }
 
 VALUE
-rb_find_file_safe(VALUE path, int _level)
-{
-    rb_warn("rb_find_file_safe will be removed in Ruby 3.0");
-    return rb_find_file(path);
-}
-
-VALUE
 rb_find_file(VALUE path)
 {
     VALUE tmp, load_path;
diff --git a/include/ruby/internal/intern/file.h b/include/ruby/internal/intern/file.h
index 5a52d57..9ebefec 100644
--- a/include/ruby/internal/intern/file.h
+++ b/include/ruby/internal/intern/file.h
@@ -31,8 +31,6 @@ VALUE rb_file_expand_path(VALUE, VALUE); https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/intern/file.h#L31
 VALUE rb_file_s_absolute_path(int, const VALUE *);
 VALUE rb_file_absolute_path(VALUE, VALUE);
 VALUE rb_file_dirname(VALUE fname);
-int rb_find_file_ext_safe(VALUE*, const char* const*, int); /* Remove in 3.0 */
-VALUE rb_find_file_safe(VALUE, int); /* Remove in 3.0 */
 int rb_find_file_ext(VALUE*, const char* const*);
 VALUE rb_find_file(VALUE);
 VALUE rb_file_directory_p(VALUE,VALUE);
-- 
cgit v0.10.2


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

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