Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jan 17, 2014
1 parent c71df74 commit ed5b076
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Expand Up @@ -291,13 +291,6 @@ def pp(result) # :nodoc:
end

def exec_query(sql, name = nil, binds = [])
#if @prepared_statements && name != 'EXPLAIN'
# unless sql.count('?') == binds.length
# str = "binds.length => #{binds.length} sql.count => #{sql.count('?')}\n" \
# "#{sql}"
# raise str
# end
#end
type_casted_binds = binds.map { |col, val|
[col, type_cast(val, col)]
}
Expand Down
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/statement_cache.rb
Expand Up @@ -51,7 +51,7 @@ def initialize(bind_values)
@value_map = {}
@bind_values = bind_values

bind_values.each_with_index do |(column, value), i|
bind_values.each_with_index do |(_, value), i|
if Substitute === value
@value_map[value.name] = i
end
Expand Down

0 comments on commit ed5b076

Please sign in to comment.