From 8d5f0d8bb3037bb4de4dfef7ff654cecf87a0f73 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 12 Feb 2014 14:28:26 -0500 Subject: [PATCH] Delete unused method --- Library/Homebrew/extend/pathname.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 3c024e77dd..f2222d37fc 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -343,17 +343,6 @@ class Pathname system '/usr/bin/install-info', '--delete', '--quiet', self.to_s, (self.dirname+'dir').to_s end - def all_formula pwd = self - children.map{ |child| child.relative_path_from(pwd) }.each do |pn| - yield pn if pn.to_s =~ /.rb$/ - end - children.each do |child| - child.all_formula(pwd) do |pn| - yield pn - end if child.directory? - end - end - def find_formula [self/:Formula, self/:HomebrewFormula, self].each do |d| if d.exist?