ruby-changes:51234
From: nobu <ko1@a...>
Date: Wed, 16 May 2018 10:31:35 +0900 (JST)
Subject: [ruby-changes:51234] nobu:r63440 (trunk): fileutils.rb: remove code for OS/2 emx
nobu 2018-05-16 10:31:28 +0900 (Wed, 16 May 2018) New Revision: 63440 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63440 Log: fileutils.rb: remove code for OS/2 emx * lib/fileutils.rb (FileUtils#mv): remove code for OS/2 emx, its support has been dropped yeas ago. Modified files: trunk/lib/fileutils.rb Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 63439) +++ lib/fileutils.rb (revision 63440) @@ -523,8 +523,6 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L523 if destent.exist? if destent.directory? raise Errno::EEXIST, d - else - destent.remove_file if rename_cannot_overwrite_file? end end begin @@ -547,15 +545,6 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L545 alias move mv module_function :move - def rename_cannot_overwrite_file? #:nodoc: - if defined?(RbConfig) - /emx/ =~ RbConfig::CONFIG['host_os'] - else - /emx/ =~ RUBY_PLATFORM - end - end - private_module_function :rename_cannot_overwrite_file? - # # Remove file(s) specified in +list+. This method cannot remove directories. # All StandardErrors are ignored when the :force option is set. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/