Remove obviously private methods from the public interface in CartService

These methods are not called from anywhere in the app, only in a couple of tests in cart_service_spec.
This commit is contained in:
Matt-Yorkley
2020-04-24 15:08:42 +02:00
parent 1152f307e2
commit 468cb3f57e

View File

@@ -22,6 +22,8 @@ class CartService
valid?
end
private
def attempt_cart_add_variants(variants_data)
loaded_variants = indexed_variants(variants_data)
@@ -71,8 +73,6 @@ class CartService
end
end
private
def scoper
@scoper ||= OpenFoodNetwork::ScopeVariantToHub.new(@distributor)
end