diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-12 21:44:30 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-12 21:44:30 -0500 |
commit | 2a5c92c1017a805fbc8dad3f5fbf5e9fe7dda2c4 (patch) | |
tree | 7368ca6f40baf9f6e0bf409d4fcc2391848f9b5b | |
parent | cbb70c896cc97077f851c1410a9fee98ca707a36 (diff) | |
download | rails-2a5c92c1017a805fbc8dad3f5fbf5e9fe7dda2c4.tar.gz rails-2a5c92c1017a805fbc8dad3f5fbf5e9fe7dda2c4.tar.bz2 rails-2a5c92c1017a805fbc8dad3f5fbf5e9fe7dda2c4.zip |
Kill unused SafelyMemoizable [#3323 state:resolved]
-rw-r--r-- | activesupport/lib/active_support/memoizable.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/activesupport/lib/active_support/memoizable.rb b/activesupport/lib/active_support/memoizable.rb index b197fbc9bf..f810f53029 100644 --- a/activesupport/lib/active_support/memoizable.rb +++ b/activesupport/lib/active_support/memoizable.rb @@ -2,19 +2,6 @@ require 'active_support/core_ext/object/metaclass' require 'active_support/core_ext/module/aliasing' module ActiveSupport - module SafelyMemoizable - def safely_memoize(*symbols) - symbols.each do |symbol| - class_eval <<-RUBY, __FILE__, __LINE__ + 1 - def #{symbol}(*args) - memoized = @_memoized_#{symbol} || ::ActiveSupport::ConcurrentHash.new - memoized[args] ||= memoized_#{symbol}(*args) - end - RUBY - end - end - end - module Memoizable def self.memoized_ivar_for(symbol) "@_memoized_#{symbol.to_s.sub(/\?\Z/, '_query').sub(/!\Z/, '_bang')}".to_sym |