diff options
author | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-16 08:15:05 +0000 |
---|---|---|
committer | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-16 08:15:05 +0000 |
commit | e6021a1be228d05ebd2657ff311664e542af5304 (patch) | |
tree | 8fa6c5b14406d28eccd8eff4e45c129cbbe335f6 /lib/fileutils.rb | |
parent | 8d0b1c25189fd0b52590b14c128999ebc650ac05 (diff) | |
download | ruby-e6021a1be228d05ebd2657ff311664e542af5304.tar.gz |
* lib/fileutils.rb (uptodate?): remove useless parameter.
patched by Oscar Del Ben.[Bug #6708][ruby-core:46256]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index ff317ded21..1303b963fe 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -221,9 +221,7 @@ public # FileUtils.uptodate?('hello.o', %w(hello.c hello.h)) or \ # system 'make hello.o' # - def uptodate?(new, old_list, options = nil) - raise ArgumentError, 'uptodate? does not accept any option' if options - + def uptodate?(new, old_list) return false unless File.exist?(new) new_time = File.mtime(new) old_list.each do |old| |