Pathname#taint and #untaint displays a warning to notice that we will remove them in Ruby 3.2, but they still exist.
$ ruby -v -rpathname -e 'Pathname("a").taint; Pathname("a").untaint'
ruby 3.2.1 (2023-02-08 revision 31819e82c8) [arm64-darwin21]
-e:1: warning: Pathname#taint is deprecated and will be removed in Ruby 3.2.
-e:1: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
Pathname#taint
and#untaint
displays a warning to notice that we will remove them in Ruby 3.2, but they still exist.https://github.com/ruby/pathname/blob/1fffb9df5bfb84acdd572b5439a15fe70d47e195/ext/pathname/pathname.c#L1540-L1541