aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorXu Cheng2015-06-10 16:00:09 +0800
committerXu Cheng2015-06-11 15:28:30 +0800
commitf2d0a88292cf3cafb8696f0bd02d4a02d0498658 (patch)
treeffb36335f23bb1529cefb1b4069e2830fb1c3dc0 /Library/Homebrew/extend/pathname.rb
parentd8876a9da4cff0843e65bcbfba1b268235e7e2b6 (diff)
downloadbrew-f2d0a88292cf3cafb8696f0bd02d4a02d0498658.tar.bz2
remove Pathname#find_formula
Closes Homebrew/homebrew#40486. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
-rw-r--r--Library/Homebrew/extend/pathname.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index ee8d8c9f4..a0c24e981 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -327,17 +327,6 @@ class Pathname
quiet_system "/usr/bin/install-info", "--delete", "--quiet", to_s, "#{dirname}/dir"
end
- def find_formula
- [join("Formula"), join("HomebrewFormula"), self].each do |d|
- if d.exist?
- d.children.each do |pn|
- yield pn if pn.extname == ".rb"
- end
- break
- end
- end
- end
-
# Writes an exec script in this folder for each target pathname
def write_exec_script *targets
targets.flatten!