aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/statement_cache.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/statement_cache.rb')
-rw-r--r--activerecord/lib/active_record/statement_cache.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/statement_cache.rb b/activerecord/lib/active_record/statement_cache.rb
index 5811e4ba6b..1a2ff23013 100644
--- a/activerecord/lib/active_record/statement_cache.rb
+++ b/activerecord/lib/active_record/statement_cache.rb
@@ -77,7 +77,6 @@ module ActiveRecord
def initialize(block = Proc.new)
@mutex = Mutex.new
@relation = nil
- @sql = nil
@binds = nil
@block = block
@query_builder = nil
@@ -110,12 +109,6 @@ module ActiveRecord
}
end
- def sql(klass, arel, bv)
- @sql || @mutex.synchronize {
- @sql ||= klass.connection.to_sql arel, bv
- }
- end
-
def relation(values)
@relation || @mutex.synchronize { @relation ||= @block.call(values) }
end