From db5765ba54419a45a61cf26157eff46d2cd5f692 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 16 May 2018 01:31:28 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/fileutils.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/fileutils.rb') diff --git a/lib/fileutils.rb b/lib/fileutils.rb index e6cff63591..e5c4086213 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -523,8 +523,6 @@ module FileUtils 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 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. -- cgit v1.2.3