diff options
| author | Jack Nagel | 2014-07-29 16:06:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-29 16:22:06 -0500 |
| commit | 581773aa6c3c3cc95e3099ebf285a6faee227e97 (patch) | |
| tree | 7e8b1ed9b1d53834f0d27d9547742d9daa7c6402 /Library | |
| parent | 893775c7b4df963ee68d8f4f46bbe2e644768b02 (diff) | |
| download | homebrew-581773aa6c3c3cc95e3099ebf285a6faee227e97.tar.bz2 | |
Remove patch hacks from audit
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 4dec97f32..31e0b0da8 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 |
