Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Apr 2, 2015
1 parent ca789c0 commit 6cff0ac
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Library/Homebrew/formula_versions.rb
Expand Up @@ -25,19 +25,6 @@ def entry_name
@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|
Expand All @@ -50,10 +37,6 @@ def file_contents_at_revision(rev)
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")
Expand Down

0 comments on commit 6cff0ac

Please sign in to comment.