diff options
| author | Jack Nagel | 2015-05-27 21:57:41 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-05-27 21:57:41 -0400 |
| commit | efd52da101cbed109d8045c02fcf0cdc4ffa7989 (patch) | |
| tree | e17dbfccefbc7a21403ef547340c632fd6aa96ab /Library | |
| parent | 6db8e1c5a910158f1476abdd7513b8f1093b7281 (diff) | |
| download | brew-efd52da101cbed109d8045c02fcf0cdc4ffa7989.tar.bz2 | |
Remove dead code
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/update.rb | 12 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_updater.rb | 6 |
2 files changed, 0 insertions, 18 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index 67bc09d8b..99f84806e 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -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 diff --git a/Library/Homebrew/test/test_updater.rb b/Library/Homebrew/test/test_updater.rb index ec48851ae..a83b28975 100644 --- a/Library/Homebrew/test/test_updater.rb +++ b/Library/Homebrew/test/test_updater.rb @@ -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 |
