summaryrefslogtreecommitdiff
path: root/ext/pathname
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-23 21:42:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-01-23 21:42:15 +0900
commitaefb13eb631cc5cd784fe2fc10f1f333a2c5e68c (patch)
treefd1d57d7945a28b8dc0dca5175b9c87a449c56be /ext/pathname
parent0ea759eac9234afc47e8fb1bcacfe9ee12c8ffb6 (diff)
downloadruby-aefb13eb631cc5cd784fe2fc10f1f333a2c5e68c.tar.gz
Added rb_warn_deprecated_to_remove
Warn the deprecation and future removal, with obeying the warning flag.
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 e511560500..86b22cae62 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("Pathname#taint is deprecated and will be removed in Ruby 3.2.");
+ rb_warn_deprecated_to_remove("Pathname#taint", "3.2");
return self;
}
@@ -151,7 +151,7 @@ path_taint(VALUE self)
static VALUE
path_untaint(VALUE self)
{
- rb_warn("Pathname#untaint is deprecated and will be removed in Ruby 3.2.");
+ rb_warn_deprecated_to_remove("Pathname#untaint", "3.2");
return self;
}