aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/descriptions.rb
diff options
context:
space:
mode:
authorXu Cheng2015-09-09 15:21:18 +0800
committerXu Cheng2015-09-10 13:37:58 +0800
commitc75207c1e0a9cf1bc7e5d91e93c0fb7c9f3a602d (patch)
tree27830ed4c7091b0d570be7083897c7abaa5aa621 /Library/Homebrew/descriptions.rb
parent65996b5887ac6e4b669e9460b8e2a4fbc7171984 (diff)
downloadbrew-c75207c1e0a9cf1bc7e5d91e93c0fb7c9f3a602d.tar.bz2
desc: print descriptions directly by formulae instead of cache
We allow passing formulae by URL, file path, etc whose descriptions won't be cached Closes Homebrew/homebrew#43726. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/descriptions.rb')
-rw-r--r--Library/Homebrew/descriptions.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/Library/Homebrew/descriptions.rb b/Library/Homebrew/descriptions.rb
index 09ea7ed56..e66e388eb 100644
--- a/Library/Homebrew/descriptions.rb
+++ b/Library/Homebrew/descriptions.rb
@@ -106,22 +106,6 @@ class Descriptions
end
end
- # Given an array of formula names, return a {Descriptions} object mapping
- # those names to their descriptions.
- def self.named(names)
- self.ensure_cache
-
- results = {}
- unless names.empty?
- results = names.inject({}) do |accum, name|
- accum[name] = @cache[name]
- accum
- end
- end
-
- new(results)
- end
-
# Given a regex, find all formulae whose specified fields contain a match.
def self.search(regex, field = :either)
self.ensure_cache