summaryrefslogtreecommitdiff
path: root/ext/pathname
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-23 21:49:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-23 21:49:58 +0900
commit27ac1c615d2a2884435a162403e2833716abf436 (patch)
tree030f7a1a4be9860b8b1c25a4afa9c8ac2d17a2ea /ext/pathname
parentaefb13eb631cc5cd784fe2fc10f1f333a2c5e68c (diff)
Revert pathname, rb_warn_deprecated* are not public API
Diffstat (limited to 'ext/pathname')
-rw-r--r--ext/pathname/pathname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
index 86b22cae62..e511560500 100644
--- a/ext/pathname/pathname.c
+++ b/ext/pathname/pathname.c
@@ -138,7 +138,7 @@ path_freeze(VALUE self)
static VALUE
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;
}
@@ -151,7 +151,7 @@ path_taint(VALUE self)
static VALUE
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;
}