diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-08 20:58:12 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-08 20:58:12 +0000 |
commit | ec67ee3387e5e1e70c6c6997c651f5eff49043cb (patch) | |
tree | 8e3b3ec2641415c92a24ffe53062132a1acb4c40 /lib/rake/contrib | |
parent | ed4eaf7ce718dbcbcbc296d570e9ae4986706b5c (diff) | |
download | ruby-ec67ee3387e5e1e70c6c6997c651f5eff49043cb.tar.gz |
* lib/rake/*.rb: Remove unused variable warnings.
Patch by Run Paint [ruby-core:30991]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake/contrib')
-rw-r--r-- | lib/rake/contrib/ftptools.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rake/contrib/ftptools.rb b/lib/rake/contrib/ftptools.rb index 4c6897f02e..12e4ff25de 100644 --- a/lib/rake/contrib/ftptools.rb +++ b/lib/rake/contrib/ftptools.rb @@ -23,7 +23,7 @@ module Rake # :nodoc: def initialize(path, entry) @path = path - @mode, line, @owner, @group, size, d1, d2, d3, @name = entry.split(' ') + @mode, _, @owner, @group, size, d1, d2, d3, @name = entry.split(' ') @size = size.to_i @time = determine_time(d1, d2, d3) end @@ -57,7 +57,6 @@ module Rake # :nodoc: def determine_time(d1, d2, d3) now = self.class.time.now if /:/ =~ d3 - h, m = d3.split(':') result = Time.parse("#{d1} #{d2} #{now.year} #{d3}") if result > now result = Time.parse("#{d1} #{d2} #{now.year-1} #{d3}") |