From b19e149bf5119a798a40f64d3c4186451996fcf7 Mon Sep 17 00:00:00 2001 From: Mikel Martin Date: Tue, 17 Dec 2024 12:01:56 +0100 Subject: [PATCH] Remove unused CartRepository --- Model/Api/CartProvider/GuestCartProvider.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Model/Api/CartProvider/GuestCartProvider.php b/Model/Api/CartProvider/GuestCartProvider.php index 8b60ba3..418fc86 100644 --- a/Model/Api/CartProvider/GuestCartProvider.php +++ b/Model/Api/CartProvider/GuestCartProvider.php @@ -19,23 +19,16 @@ class GuestCartProvider implements CartProvider * @var GuestCartRepositoryInterface */ private $guestCartRepository; - /** - * @var CartRepositoryInterface - */ - private $cartRepository; /** * GuestCartProvider constructor. * * @param GuestCartRepositoryInterface $guestCartRepository - * @param CartRepositoryInterface $cartRepository */ public function __construct( - GuestCartRepositoryInterface $guestCartRepository, - CartRepositoryInterface $cartRepository + GuestCartRepositoryInterface $guestCartRepository ) { $this->guestCartRepository = $guestCartRepository; - $this->cartRepository = $cartRepository; } public function getQuote(string $cartId): Quote @@ -44,8 +37,7 @@ public function getQuote(string $cartId): Quote $quote = $this->guestCartRepository->get($cartId); if (!$quote->getIsActive()) { throw NoSuchEntityException::singleField('cartId', $cartId); - } - + } return $quote; } }