From 1a799f04e6af870c03aa02f2c3a9db6e0bd55bca Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 17 Feb 2013 22:54:27 -0600 Subject: Remove unused variables --- Library/Homebrew/cmd/audit.rb | 6 ++---- Library/Homebrew/cmd/cleanup.rb | 2 +- Library/Homebrew/cmd/update.rb | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'Library/Homebrew/cmd') 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) -- cgit v1.2.3