Remove unused methods

Validation with a tokenizer was only supported for versions of Rails
less than 5. As noted
[here](https://github.com/heartcombo/simple_form/blob/v3.5.1/lib/simple_form/components/maxlength.rb#L31-L32)

When Rails 4 support was dropped, the use the `has_tokenizer?` method is
no longer used anywhere in the project. These changes remove the unused
methods.
This commit is contained in:
jonesdeini 2020-11-02 14:25:05 -05:00
parent 689f5e63a8
commit 4312bba652
2 changed files with 0 additions and 8 deletions

View File

@ -24,10 +24,6 @@ module SimpleForm
find_validator(:length)
end
def has_tokenizer?(length_validator)
length_validator.options[:tokenizer]
end
def maximum_length_value_from(length_validator)
if length_validator
length_validator.options[:is] || length_validator.options[:maximum]

View File

@ -24,10 +24,6 @@ module SimpleForm
find_validator(:length)
end
def has_tokenizer?(length_validator)
length_validator.options[:tokenizer]
end
def minimum_length_value_from(length_validator)
if length_validator
length_validator.options[:is] || length_validator.options[:minimum]