зеркало из https://github.com/github/ruby.git
Removed rb_find_file_ext_safe and rb_find_file_safe
This commit is contained in:
Родитель
ed27c2514c
Коммит
e380f78851
14
file.c
14
file.c
|
@ -6301,13 +6301,6 @@ copy_path_class(VALUE path, VALUE orig)
|
|||
return path;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
@ -6367,13 +6360,6 @@ rb_find_file_ext(VALUE *filep, const char *const *ext)
|
|||
return 0;
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -31,8 +31,6 @@ VALUE rb_file_expand_path(VALUE, VALUE);
|
|||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче