aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-06-18 15:26:11 +0800
committerXu Cheng2015-06-18 15:26:11 +0800
commit2f44990ea9e0439db24c8b6ef932c608f3f0069b (patch)
treeff7cdc00def23b9dc9388ad02748e6aa51db261c /Library/Homebrew
parent6af47815b0a1168cfc787a38d8e48eb6c467f0a4 (diff)
downloadbrew-2f44990ea9e0439db24c8b6ef932c608f3f0069b.tar.bz2
Revert "audit: add benchmark inject code"
This reverts commit fb23d603ded2796299ed7fc2f4ffee22870b7ea6.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/audit.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 38912aeed..e3e0166a2 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -20,26 +20,6 @@ module Homebrew
ENV.activate_extensions!
ENV.setup_build_environment
- if ARGV.switch? "D"
- FormulaAuditor.module_eval do
- instance_methods.grep(/audit_/).map do |name|
- method = instance_method(name)
- define_method(name) do |*args, &block|
- begin
- time = Time.now
- method.bind(self).(*args, &block)
- ensure
- $times[name] ||= 0
- $times[name] += Time.now - time
- end
- end
- end
- end
-
- $times = {}
- at_exit { puts $times.sort_by{ |k, v| v }.map{ |k, v| "#{k}: #{v}" } }
- end
-
ff = if ARGV.named.empty?
Formula
else