aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/benchmarkable.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2013-06-01 13:08:45 +0900
committerkennyj <kennyj@gmail.com>2013-06-01 21:23:19 +0900
commitf8f30c88ad6190589e34f18813031f6c260e71dd (patch)
tree893b03c496f7e1abed72c660c2917c7895b91efc /activesupport/lib/active_support/benchmarkable.rb
parent6f3e01e8b78eff1b1685a0b35d70819376bfd773 (diff)
downloadrails-f8f30c88ad6190589e34f18813031f6c260e71dd.tar.gz
rails-f8f30c88ad6190589e34f18813031f6c260e71dd.tar.bz2
rails-f8f30c88ad6190589e34f18813031f6c260e71dd.zip
Remove ActiveSupport::Benchmarkable#silence was deprecated.
Diffstat (limited to 'activesupport/lib/active_support/benchmarkable.rb')
-rw-r--r--activesupport/lib/active_support/benchmarkable.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activesupport/lib/active_support/benchmarkable.rb b/activesupport/lib/active_support/benchmarkable.rb
index 6413502b53..805b7a714f 100644
--- a/activesupport/lib/active_support/benchmarkable.rb
+++ b/activesupport/lib/active_support/benchmarkable.rb
@@ -45,15 +45,5 @@ module ActiveSupport
yield
end
end
-
- # Silence the logger during the execution of the block.
- def silence
- message = "ActiveSupport::Benchmarkable#silence is deprecated. It will be removed from Rails 4.1."
- ActiveSupport::Deprecation.warn message
- old_logger_level, logger.level = logger.level, ::Logger::ERROR if logger
- yield
- ensure
- logger.level = old_logger_level if logger
- end
end
end