Revert pathname, rb_warn_deprecated* are not public API

This commit is contained in:
Nobuyoshi Nakada 2020-01-23 21:49:58 +09:00
Родитель aefb13eb63
Коммит 27ac1c615d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4BC7D6DF58D8DF60
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -138,7 +138,7 @@ path_freeze(VALUE self)
static VALUE static VALUE
path_taint(VALUE self) path_taint(VALUE self)
{ {
rb_warn_deprecated_to_remove("Pathname#taint", "3.2"); rb_warn("Pathname#taint is deprecated and will be removed in Ruby 3.2.");
return self; return self;
} }
@ -151,7 +151,7 @@ path_taint(VALUE self)
static VALUE static VALUE
path_untaint(VALUE self) path_untaint(VALUE self)
{ {
rb_warn_deprecated_to_remove("Pathname#untaint", "3.2"); rb_warn("Pathname#untaint is deprecated and will be removed in Ruby 3.2.");
return self; return self;
} }