diff options
| author | Jack Nagel | 2013-02-17 22:54:27 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-18 12:13:35 -0600 |
| commit | 1a799f04e6af870c03aa02f2c3a9db6e0bd55bca (patch) | |
| tree | 98f563b1edfb8c0b976260150600932bf809439a /Library/Homebrew/cmd | |
| parent | f172d3a6eb3c78be87dc3f58786a7db78cd12fca (diff) | |
| download | brew-1a799f04e6af870c03aa02f2c3a9db6e0bd55bca.tar.bz2 | |
Remove unused variables
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 6 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/cleanup.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/update.rb | 1 |
3 files changed, 3 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index f880db36b..b391bc0e3 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -118,8 +118,6 @@ class FormulaAuditor end def audit_deps - problems = [] - # Don't depend_on aliases; use full name aliases = Formula.aliases f.deps.select { |d| aliases.include? d.name }.each do |d| @@ -163,8 +161,8 @@ class FormulaAuditor def audit_conflicts f.conflicts.each do |req| begin - conflict_f = Formula.factory req.formula - rescue + Formula.factory req.formula + rescue FormulaUnavailableError problem "Can't find conflicting formula \"#{req.formula}\"." end end diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 490065606..86607b2e2 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -11,7 +11,7 @@ module Homebrew extend self HOMEBREW_CELLAR.children.each do |rack| begin cleanup_formula rack.basename.to_s if rack.directory? - rescue FormulaUnavailableError => e + rescue FormulaUnavailableError # Don't complain about Cellar folders that are from DIY installs # instead of core formulae. end diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index db8d8d79c..838351e68 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -25,7 +25,6 @@ module Homebrew extend self master_updater.pull! report.merge!(master_updater.report) - new_files = [] Dir["Library/Taps/*"].each do |tapd| next unless File.directory?(tapd) |
