mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user