diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-01-23 21:42:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-01-23 21:42:15 +0900 |
commit | aefb13eb631cc5cd784fe2fc10f1f333a2c5e68c (patch) | |
tree | fd1d57d7945a28b8dc0dca5175b9c87a449c56be /ext/pathname/pathname.c | |
parent | 0ea759eac9234afc47e8fb1bcacfe9ee12c8ffb6 (diff) |
Added rb_warn_deprecated_to_remove
Warn the deprecation and future removal, with obeying the warning
flag.
Diffstat (limited to 'ext/pathname/pathname.c')
-rw-r--r-- | ext/pathname/pathname.c | 4 |
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; } |