From c7ec737f86bade367eb45e004f21ec1b16f3e2e9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 5 Mar 2012 20:47:01 -0800 Subject: [PATCH] Remove silly path method --- Library/Homebrew/formula.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 8369d364d4..676e997d62 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