diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-23 21:42:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-23 21:42:15 +0900 |
commit | aefb13eb631cc5cd784fe2fc10f1f333a2c5e68c (patch) | |
tree | fd1d57d7945a28b8dc0dca5175b9c87a449c56be /object.c | |
parent | 0ea759eac9234afc47e8fb1bcacfe9ee12c8ffb6 (diff) |
Added rb_warn_deprecated_to_remove
Warn the deprecation and future removal, with obeying the warning
flag.
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1216,7 +1216,7 @@ rb_obj_dummy1(VALUE _x, VALUE _y) VALUE rb_obj_tainted(VALUE obj) { - rb_warn("Object#tainted? is deprecated and will be removed in Ruby 3.2."); + rb_warn_deprecated_to_remove("Object#tainted?", "3.2"); return Qfalse; } @@ -1230,7 +1230,7 @@ rb_obj_tainted(VALUE obj) VALUE rb_obj_taint(VALUE obj) { - rb_warn("Object#taint is deprecated and will be removed in Ruby 3.2."); + rb_warn_deprecated_to_remove("Object#taint", "3.2"); return obj; } @@ -1245,7 +1245,7 @@ rb_obj_taint(VALUE obj) VALUE rb_obj_untaint(VALUE obj) { - rb_warn("Object#untaint is deprecated and will be removed in Ruby 3.2."); + rb_warn_deprecated_to_remove("Object#untaint", "3.2"); return obj; } @@ -1259,7 +1259,7 @@ rb_obj_untaint(VALUE obj) VALUE rb_obj_untrusted(VALUE obj) { - rb_warn("Object#untrusted? is deprecated and will be removed in Ruby 3.2."); + rb_warn_deprecated_to_remove("Object#untrusted?", "3.2"); return Qfalse; } @@ -1273,7 +1273,7 @@ rb_obj_untrusted(VALUE obj) VALUE rb_obj_untrust(VALUE obj) { - rb_warn("Object#untrust is deprecated and will be removed in Ruby 3.2."); + rb_warn_deprecated_to_remove("Object#untrust", "3.2"); return obj; } @@ -1288,7 +1288,7 @@ rb_obj_untrust(VALUE obj) VALUE rb_obj_trust(VALUE obj) { - rb_warn("Object#trust is deprecated and will be removed in Ruby 3.2."); + rb_warn_deprecated_to_remove("Object#trust", "3.2"); return obj; } @@ -1299,7 +1299,7 @@ rb_obj_trust(VALUE obj) void rb_obj_infect(VALUE victim, VALUE carrier) { - rb_warn("rb_obj_infect is deprecated and will be removed in Ruby 3.2."); + rb_warn_deprecated_to_remove("rb_obj_infect", "3.2"); } /** |