Skip to content
Browse files

Kill unused SafelyMemoizable [#3323 state:resolved]

  • Loading branch information...
1 parent cbb70c8 commit 2a5c92c1017a805fbc8dad3f5fbf5e9fe7dda2c4 @josh josh committed Oct 12, 2009
Showing with 0 additions and 13 deletions.
  1. +0 −13 activesupport/lib/active_support/memoizable.rb
View
13 activesupport/lib/active_support/memoizable.rb
@@ -2,19 +2,6 @@
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

0 comments on commit 2a5c92c

Please sign in to comment.
Something went wrong with that request. Please try again.