Permalink
Browse files

remove unused `expand_range_bind_variables` method

this method was not used, not documented and not tested.
  • Loading branch information...
1 parent 43e14f8 commit 13206cc73ca419273822ab02b3d8f177bd70ca2e @senny senny committed Oct 8, 2012
Showing with 0 additions and 17 deletions.
  1. +0 −17 activerecord/lib/active_record/sanitization.rb
@@ -141,23 +141,6 @@ def replace_named_bind_variables(statement, bind_vars) #:nodoc:
end
end
- def expand_range_bind_variables(bind_vars) #:nodoc:
- expanded = []
-
- bind_vars.each do |var|
- next if var.is_a?(Hash)
-
- if var.is_a?(Range)
- expanded << var.first
- expanded << var.last
- else
- expanded << var
- end
- end
-
- expanded
- end
-
def quote_bound_value(value, c = connection) #:nodoc:
if value.respond_to?(:map) && !value.acts_like?(:string)
if value.respond_to?(:empty?) && value.empty?

0 comments on commit 13206cc

Please sign in to comment.