diff --git a/app/models/spree/product.rb b/app/models/spree/product.rb index 6bd6cbc3dd..435b62221c 100755 --- a/app/models/spree/product.rb +++ b/app/models/spree/product.rb @@ -266,13 +266,6 @@ module Spree duplicator.duplicate end - # use deleted? rather than checking the attribute directly. this - # allows extensions to override deleted? if they want to provide - # their own definition. - def deleted? - !!deleted_at - end - # split variants list into hash which shows mapping of opt value onto matching variants # eg categorise_variants_from_option(color) => {"red" -> [...], "blue" -> [...]} def categorise_variants_from_option(opt_type) diff --git a/app/models/spree/variant.rb b/app/models/spree/variant.rb index 8268d78336..8be71b1252 100644 --- a/app/models/spree/variant.rb +++ b/app/models/spree/variant.rb @@ -166,13 +166,6 @@ module Spree OpenFoodNetwork::EnterpriseFeeCalculator.new(distributor, order_cycle).fees_by_type_for self end - # use deleted? rather than checking the attribute directly. this - # allows extensions to override deleted? if they want to provide - # their own definition. - def deleted? - deleted_at - end - def option_value(opt_name) option_values.detect { |o| o.option_type.name == opt_name }.try(:presentation) end