@@ -130,32 +130,6 @@ path_freeze(VALUE self)
130130 return self ;
131131}
132132
133- /*
134- * call-seq:
135- * pathname.taint -> obj
136- *
137- * Returns pathname. This method is deprecated and will be removed in Ruby 3.2.
138- */
139- static VALUE
140- path_taint (VALUE self )
141- {
142- rb_warn ("Pathname#taint is deprecated and will be removed in Ruby 3.2." );
143- return self ;
144- }
145-
146- /*
147- * call-seq:
148- * pathname.untaint -> obj
149- *
150- * Returns pathname. This method is deprecated and will be removed in Ruby 3.2.
151- */
152- static VALUE
153- path_untaint (VALUE self )
154- {
155- rb_warn ("Pathname#untaint is deprecated and will be removed in Ruby 3.2." );
156- return self ;
157- }
158-
159133/*
160134 * Compare this pathname with +other+. The comparison is string-based.
161135 * Be aware that two different paths (<tt>foo.txt</tt> and <tt>./foo.txt</tt>)
@@ -1537,8 +1511,6 @@ Init_pathname(void)
15371511 rb_cPathname = rb_define_class ("Pathname" , rb_cObject );
15381512 rb_define_method (rb_cPathname , "initialize" , path_initialize , 1 );
15391513 rb_define_method (rb_cPathname , "freeze" , path_freeze , 0 );
1540- rb_define_method (rb_cPathname , "taint" , path_taint , 0 );
1541- rb_define_method (rb_cPathname , "untaint" , path_untaint , 0 );
15421514 rb_define_method (rb_cPathname , "==" , path_eq , 1 );
15431515 rb_define_method (rb_cPathname , "===" , path_eq , 1 );
15441516 rb_define_method (rb_cPathname , "eql?" , path_eq , 1 );
0 commit comments