diff options
| author | Adam Vandenberg | 2012-03-05 20:47:01 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2012-03-07 06:57:23 -0800 | 
| commit | 9b21d5e1f2a144122e8e47352f6b7fc84fbdca11 (patch) | |
| tree | 0fc2a67b76cc1ae0e455ede3789852cb2931e623 | |
| parent | 8b04a82181d1b0d29b49db2b53d0f78bcf4dae1e (diff) | |
| download | homebrew-9b21d5e1f2a144122e8e47352f6b7fc84fbdca11.tar.bz2 | |
Remove silly path method
| -rw-r--r-- | Library/Homebrew/formula.rb | 11 | 
1 files changed, 2 insertions, 9 deletions
| diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 8369d364d..676e997d6 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -44,7 +44,8 @@ class Formula      @name=name      validate_variable :name -    @path = path.nil? ? nil : Pathname.new(path) +    # If we got an explicit path, use that, else determine from the name +    @path = path.nil? ? self.class.path(name) : Pathname.new(path)      set_instance_variable 'version'      @version ||= @spec_to_use.detect_version @@ -86,14 +87,6 @@ class Formula      end    end -  def path -    if @path.nil? -      return self.class.path(name) -    else -      return @path -    end -  end -    def prefix      validate_variable :name      validate_variable :version | 
