summaryrefslogtreecommitdiff
path: root/lib/rake.rb
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 20:58:12 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-08 20:58:12 +0000
commitec67ee3387e5e1e70c6c6997c651f5eff49043cb (patch)
tree8e3b3ec2641415c92a24ffe53062132a1acb4c40 /lib/rake.rb
parented4eaf7ce718dbcbcbc296d570e9ae4986706b5c (diff)
* 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.rb')
-rw-r--r--lib/rake.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rake.rb b/lib/rake.rb
index b46b196878..e597db5eb2 100644
--- a/lib/rake.rb
+++ b/lib/rake.rb
@@ -1038,7 +1038,7 @@ module FileUtils
else
begin
ln(*args)
- rescue StandardError, NotImplementedError => ex
+ rescue StandardError, NotImplementedError
LN_SUPPORTED[0] = false
cp(*args)
end
@@ -1687,7 +1687,7 @@ module Rake
end
def create_rule(*args, &block)
- pattern, arg_names, deps = resolve_args(args)
+ pattern, _, deps = resolve_args(args)
pattern = Regexp.new(Regexp.quote(pattern) + '$') if String === pattern
@rules << [pattern, deps, block]
end
@@ -1795,7 +1795,7 @@ module Rake
fail Rake::RuleRecursionOverflowError,
"Rule Recursion Too Deep" if level >= 16
@rules.each do |pattern, extensions, block|
- if md = pattern.match(task_name)
+ if pattern.match(task_name)
task = attempt_rule(task_name, extensions, block, level)
return task if task
end
@@ -2245,7 +2245,7 @@ module Rake
rescue LoadError => ex
begin
rake_require value
- rescue LoadError => ex2
+ rescue LoadError
raise ex
end
end