diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-27 11:42:48 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-03-27 07:21:52 +0000 |
commit | 9b7a7e9cef2daa3aec4aeb55205aab9da2db4eb6 (patch) | |
tree | 21d008b661ef4f6e41a552b2b4f1d1242a0e23b5 /ext/pathname/pathname.c | |
parent | cc8a48a496e4466d50f14473216786bba1e9fc93 (diff) |
[ruby/pathname] Remove taint/untaint methods because they should be removed since Ruby 3.2 released.
Fixes https://github.com/ruby/pathname/pull/28
https://github.com/ruby/pathname/commit/c52fd3a835
Diffstat (limited to 'ext/pathname/pathname.c')
-rw-r--r-- | ext/pathname/pathname.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index 8ee4bcec5b..878f216fb5 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -131,32 +131,6 @@ path_freeze(VALUE self) } /* - * call-seq: - * pathname.taint -> obj - * - * Returns pathname. This method is deprecated and will be removed in Ruby 3.2. - */ -static VALUE -path_taint(VALUE self) -{ - rb_warn("Pathname#taint is deprecated and will be removed in Ruby 3.2."); - return self; -} - -/* - * call-seq: - * pathname.untaint -> obj - * - * Returns pathname. This method is deprecated and will be removed in Ruby 3.2. - */ -static VALUE -path_untaint(VALUE self) -{ - rb_warn("Pathname#untaint is deprecated and will be removed in Ruby 3.2."); - return self; -} - -/* * Compare this pathname with +other+. The comparison is string-based. * Be aware that two different paths (<tt>foo.txt</tt> and <tt>./foo.txt</tt>) * can refer to the same file. @@ -1537,8 +1511,6 @@ Init_pathname(void) rb_cPathname = rb_define_class("Pathname", rb_cObject); rb_define_method(rb_cPathname, "initialize", path_initialize, 1); rb_define_method(rb_cPathname, "freeze", path_freeze, 0); - rb_define_method(rb_cPathname, "taint", path_taint, 0); - rb_define_method(rb_cPathname, "untaint", path_untaint, 0); rb_define_method(rb_cPathname, "==", path_eq, 1); rb_define_method(rb_cPathname, "===", path_eq, 1); rb_define_method(rb_cPathname, "eql?", path_eq, 1); |