mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ed4eaf7ce7
commit
ec67ee3387
2 changed files with 5 additions and 6 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue