From dc2080bd9f111a3bc5a71b981a0c2035266d3aaf Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 29 Jul 2014 16:06:07 -0500 Subject: [PATCH] Remove patch hacks from audit --- Library/Homebrew/cmd/audit.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 4dec97f32b..31e0b0da85 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -36,13 +36,6 @@ module Homebrew end end -class Module - def redefine_const(name, value) - __send__(:remove_const, name) if const_defined?(name) - const_set(name, value) - end -end - # Formula extensions for auditing class Formula def head_only? @@ -101,9 +94,6 @@ class FormulaAuditor @problems = [] @text = f.text.without_patch @specs = %w{stable devel head}.map { |s| f.send(s) }.compact - - # We need to do this in case the formula defines a patch that uses DATA. - f.class.redefine_const :DATA, "" end def audit_file