Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Commit

Permalink
removing unneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLasseigne committed Mar 26, 2012
1 parent 59d65cd commit f636236
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/with_filters/value_prep/default_prep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def value
{start: self.prepare_start_value(@value[:start]), stop: self.prepare_stop_value(@value[:stop])}
else
temp = Array.wrap(@value).map do |value|
self.prepare_value_with_match(value)
self.add_match(self.prepare_value(value))
end
temp.length == 1 ? temp.first : temp
end
Expand All @@ -21,10 +21,6 @@ def prepare_value(value)
value.respond_to?(:strip) ? value.strip : value
end

def prepare_value_with_match(value)
self.add_match(self.prepare_value(value))
end

def prepare_start_value(value)
self.prepare_value(value)
end
Expand Down

0 comments on commit f636236

Please sign in to comment.