diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-17 11:00:04 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-17 11:00:04 -0800 |
commit | ed5b076ff6b5e187db849728df313876c1e7fa39 (patch) | |
tree | 0bde0f098da356fa1d2894b77a50ee3cfc6fe5eb /activerecord/lib | |
parent | c71df74fb1084c9204233ecb37fe54be243cfdc2 (diff) | |
download | rails-ed5b076ff6b5e187db849728df313876c1e7fa39.tar.gz rails-ed5b076ff6b5e187db849728df313876c1e7fa39.tar.bz2 rails-ed5b076ff6b5e187db849728df313876c1e7fa39.zip |
remove dead code
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 7 | ||||
-rw-r--r-- | activerecord/lib/active_record/statement_cache.rb | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index 87bb2ef7b7..55533311f5 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -291,13 +291,6 @@ module ActiveRecord 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)] } diff --git a/activerecord/lib/active_record/statement_cache.rb b/activerecord/lib/active_record/statement_cache.rb index 7e73744d59..46c8bcc9c5 100644 --- a/activerecord/lib/active_record/statement_cache.rb +++ b/activerecord/lib/active_record/statement_cache.rb @@ -51,7 +51,7 @@ module ActiveRecord @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 |