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.