diff options
| author | Jack Nagel | 2015-04-01 21:06:03 -0400 |
|---|---|---|
| committer | Jack Nagel | 2015-04-01 21:15:18 -0400 |
| commit | f51439329ba86ae6bbb9c513b03ec4f3eb23ef43 (patch) | |
| tree | a56cc418dc80469fdd8d20cc4b6ced234795f1bb /Library/Homebrew | |
| parent | 6ca42964cb20a321be56180df9c568c1c016e84e (diff) | |
| download | brew-f51439329ba86ae6bbb9c513b03ec4f3eb23ef43.tar.bz2 | |
Remove dead code
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula_versions.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index 8f8f644ff..eb4334a62 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -25,19 +25,6 @@ class FormulaVersions @entry_name ||= f.path.relative_path_from(repository).to_s end - def each - versions = Set.new - rev_list do |rev| - version = version_at_revision(rev) - next if version.nil? - yield version, rev if versions.add?(version) - end - end - - def repository_path - Pathname.pwd == repository ? entry_name : f.path - end - def rev_list(branch="HEAD") repository.cd do Utils.popen_read("git", "rev-list", "--abbrev-commit", "--remove-empty", branch, "--", entry_name) do |io| @@ -50,10 +37,6 @@ class FormulaVersions repository.cd { Utils.popen_read("git", "cat-file", "blob", "#{rev}:#{entry_name}") } end - def version_at_revision(rev) - formula_at_revision(rev) { |f| f.version } - end - def formula_at_revision(rev) FileUtils.mktemp(f.name) do path = Pathname.pwd.join("#{f.name}.rb") |
