From 468cb3f57e12e7006d7c0f92615b79f2575ffbd4 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 24 Apr 2020 15:08:42 +0200 Subject: [PATCH] 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. --- app/services/cart_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/cart_service.rb b/app/services/cart_service.rb index cf6ffc40b4..5bb54c6dbb 100644 --- a/app/services/cart_service.rb +++ b/app/services/cart_service.rb @@ -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