aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-07-29 16:06:07 -0500
committerJack Nagel2014-07-29 16:22:06 -0500
commitdc2080bd9f111a3bc5a71b981a0c2035266d3aaf (patch)
treeb509e6c742f8ef1cf5aa6d76e42688ef4279b7ba /Library/Homebrew/cmd
parenta55e196f5f72ef0b1c829007c9b4a68de5c06ef0 (diff)
downloadbrew-dc2080bd9f111a3bc5a71b981a0c2035266d3aaf.tar.bz2
Remove patch hacks from audit
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb10
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