aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-04-18 03:46:01 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-04-18 03:46:01 -0300
commitb7ea64a86c03becdbdd417cc79cc1d2ad20a30bc (patch)
treebe428e5d8cb1dd4a6b06e3ea2e9a7212e6f8902a /activesupport/lib
parentc4846c99c51a33bd66933dd0fd5dacfac99fb9de (diff)
downloadrails-b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc.tar.gz
rails-b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc.tar.bz2
rails-b7ea64a86c03becdbdd417cc79cc1d2ad20a30bc.zip
remove code for Ruby < 1.8.7
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/benchmark.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/activesupport/lib/active_support/core_ext/benchmark.rb b/activesupport/lib/active_support/core_ext/benchmark.rb
index ae57b152e8..2d110155a5 100644
--- a/activesupport/lib/active_support/core_ext/benchmark.rb
+++ b/activesupport/lib/active_support/core_ext/benchmark.rb
@@ -1,18 +1,6 @@
require 'benchmark'
class << Benchmark
- # Earlier Ruby had a slower implementation.
- if RUBY_VERSION < '1.8.7'
- remove_method :realtime
-
- def realtime
- r0 = Time.now
- yield
- r1 = Time.now
- r1.to_f - r0.to_f
- end
- end
-
def ms
1000 * realtime { yield }
end