aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
diff options
context:
space:
mode:
authorXu Cheng2015-12-07 00:04:40 +0800
committerXu Cheng2015-12-09 16:56:59 +0800
commit6e92609cf42c18a84c0eefd3e7dea56856330f76 (patch)
treea79454b0c44d5392bd8ebda2b514edb75f82492e /Library/Homebrew/formulary.rb
parent061a34b138232083fdad7eaf28a30085adccbf42 (diff)
downloadbrew-6e92609cf42c18a84c0eefd3e7dea56856330f76.tar.bz2
Formulary: use same logic to handle core fully-qualified name
Diffstat (limited to 'Library/Homebrew/formulary.rb')
-rw-r--r--Library/Homebrew/formulary.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index d7b9f020b..4678f7a0e 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -262,14 +262,6 @@ class Formulary
return FromUrlLoader.new(ref)
when Pathname::BOTTLE_EXTNAME_RX
return BottleLoader.new(ref)
- when HOMEBREW_CORE_FORMULA_REGEX
- name = $1
- formula_with_that_name = core_path(name)
- if (newname = FORMULA_RENAMES[name]) && !formula_with_that_name.file?
- return FormulaLoader.new(newname, core_path(newname))
- else
- return FormulaLoader.new(name, formula_with_that_name)
- end
when HOMEBREW_TAP_FORMULA_REGEX
return TapLoader.new(ref)
end