Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove dead code

  • Loading branch information...
commit 90c9a09ff70388b32b9c9afca4ae998b99fd2d1f 1 parent 6388b4b
@tenderlove tenderlove authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 activerecord/lib/active_record/statement_cache.rb
View
7 activerecord/lib/active_record/statement_cache.rb
@@ -77,7 +77,6 @@ def bind(values)
def initialize(block = Proc.new)
@mutex = Mutex.new
@relation = nil
- @sql = nil
@binds = nil
@block = block
@query_builder = nil
@@ -110,12 +109,6 @@ def query_builder(connection, arel)
}
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
Please sign in to comment.
Something went wrong with that request. Please try again.