Remove dead code

This commit is contained in:
Jack Nagel 2015-05-27 21:57:41 -04:00
parent 6db8e1c5a9
commit efd52da101
2 changed files with 0 additions and 18 deletions

View File

@ -238,18 +238,6 @@ class Report
dump_formula_report :D, "Deleted Formulae"
end
def tapped_formula_for key
fetch(key, []).select { |path| HOMEBREW_TAP_PATH_REGEX === path.to_s }
end
def new_tapped_formula
tapped_formula_for :A
end
def removed_tapped_formula
tapped_formula_for :D
end
def select_formula key
fetch(key, []).map do |path|
case path.to_s

View File

@ -126,11 +126,5 @@ class UpdaterTests < Homebrew::TestCase
assert_equal %w{foo/bar/lua}, @report.select_formula(:A)
assert_equal %w{foo/bar/git}, @report.select_formula(:M)
assert_empty @report.select_formula(:D)
assert_empty @report.removed_tapped_formula
assert_equal [repo.join("Formula", "lua.rb")],
@report.new_tapped_formula
assert_equal [repo.join("Formula", "git.rb")],
@report.tapped_formula_for(:M)
end
end