Permalink
Browse files

remove dead code

  • Loading branch information...
tenderlove committed Jan 17, 2014
1 parent c71df74 commit ed5b076ff6b5e187db849728df313876c1e7fa39
@@ -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)]
}
@@ -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

0 comments on commit ed5b076

Please sign in to comment.