aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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