From 3b52b173e8af82b30ba469a31f0fc6a34e2fc391 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 12 May 2021 13:06:31 +0100 Subject: [PATCH] Delete more dead code in CartService --- app/services/cart_service.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/services/cart_service.rb b/app/services/cart_service.rb index da9fc4b269..943baa5787 100644 --- a/app/services/cart_service.rb +++ b/app/services/cart_service.rb @@ -57,9 +57,6 @@ class CartService end def attempt_cart_add(variant, quantity, max_quantity = nil) - quantity = quantity - max_quantity = max_quantity if max_quantity - scoper.scope(variant) return unless valid_variant?(variant)