aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 22:54:27 -0600
committerJack Nagel2013-02-18 12:13:35 -0600
commit1a799f04e6af870c03aa02f2c3a9db6e0bd55bca (patch)
tree98f563b1edfb8c0b976260150600932bf809439a /Library/Homebrew/formula.rb
parentf172d3a6eb3c78be87dc3f58786a7db78cd12fca (diff)
downloadbrew-1a799f04e6af870c03aa02f2c3a9db6e0bd55bca.tar.bz2
Remove unused variables
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 6d45d5ae3..7b8877618 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -228,7 +228,7 @@ class Formula
# we allow formulae to do anything they want to the Ruby process
# so load any deps before this point! And exit asap afterwards
yield self
- rescue RuntimeError, SystemCallError => e
+ rescue RuntimeError, SystemCallError
%w(config.log CMakeCache.txt).each do |fn|
(HOMEBREW_LOGS/name).install(fn) if File.file?(fn)
end
@@ -294,7 +294,7 @@ class Formula
names.each do |name|
yield begin
Formula.factory(name)
- rescue => e
+ rescue
# Don't let one broken formula break commands. But do complain.
onoe "Failed to import: #{name}"
next
@@ -543,7 +543,7 @@ protected
mkdir_p(logd)
rd, wr = IO.pipe
- pid = fork do
+ fork do
rd.close
$stdout.reopen wr
$stderr.reopen wr
@@ -570,7 +570,7 @@ protected
raise ErrorDuringExecution
end
end
- rescue ErrorDuringExecution => e
+ rescue ErrorDuringExecution
raise BuildError.new(self, cmd, args, $?)
ensure
f.close if f and not f.closed?