aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/statement_cache.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-04-10 16:34:03 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-04-10 16:34:03 -0700
commit90c9a09ff70388b32b9c9afca4ae998b99fd2d1f (patch)
tree88ba402c51bd87f27081cb8b529cad1b68debef4 /activerecord/lib/active_record/statement_cache.rb
parent6388b4b15383c93c647c4b3732df2cb8940444bf (diff)
downloadrails-90c9a09ff70388b32b9c9afca4ae998b99fd2d1f.tar.gz
rails-90c9a09ff70388b32b9c9afca4ae998b99fd2d1f.tar.bz2
rails-90c9a09ff70388b32b9c9afca4ae998b99fd2d1f.zip
remove dead code
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