From f0ad09c1fe5d1080dce8823a348c619aaa169db9 Mon Sep 17 00:00:00 2001 From: Daniele Palombo Date: Fri, 13 Nov 2020 19:57:40 +0100 Subject: [PATCH] Remove deprecated method Spree::Taxon.applicable_filters https://github.com/solidusio/solidus/pull/2670 --- core/app/models/spree/taxon.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/app/models/spree/taxon.rb b/core/app/models/spree/taxon.rb index 97ddd3fbb73..b494f7b5441 100644 --- a/core/app/models/spree/taxon.rb +++ b/core/app/models/spree/taxon.rb @@ -29,17 +29,6 @@ class Taxon < Spree::Base self.whitelisted_ransackable_attributes = %w[name] - # @note This method is meant to be overridden on a store by store basis. - # @return [Array] filters that should be used for a taxon - def applicable_filters - Spree::Deprecation.warn "Spree::Taxon#applicable_filters is deprecated, if you are using this functionality please move it into your own application." - - fs = [] - fs << Spree::Core::ProductFilters.price_filter if Spree::Core::ProductFilters.respond_to?(:price_filter) - fs << Spree::Core::ProductFilters.brand_filter if Spree::Core::ProductFilters.respond_to?(:brand_filter) - fs - end - # @return [String] meta_title if set otherwise a string containing the # root name and taxon name def seo_title