Skip to content

Commit

Permalink
Remove unused CartRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Dec 17, 2024
1 parent 02aaf31 commit b19e149
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Model/Api/CartProvider/GuestCartProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}
}

0 comments on commit b19e149

Please sign in to comment.