Skip to content

Commit 0023d11

Browse files
author
Cari Spruiell
committed
MAGETWO-36376: Magento\Quote\Api\GuestCartItemRepository
- removed delete methods from interface and implementation
1 parent 60ccb72 commit 0023d11

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

app/code/Magento/Quote/Api/GuestCartItemRepositoryInterface.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ public function getList($cartId);
3030
*/
3131
public function save(\Magento\Quote\Api\Data\CartItemInterface $cartItem);
3232

33-
/**
34-
* Delete cart item
35-
*
36-
* @param \Magento\Quote\Api\Data\CartItemInterface $cartItem
37-
* @return void
38-
* @throws \Magento\Framework\Exception\CouldNotSaveException
39-
*/
40-
public function delete(\Magento\Quote\Api\Data\CartItemInterface $cartItem);
41-
4233
/**
4334
* Removes the specified item from the specified cart.
4435
*

app/code/Magento/Quote/Model/GuestCart/GuestCartItemRepository.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,4 @@ public function deleteById($cartId, $itemId)
7575
$quoteIdMask = $this->quoteIdMaskFactory->create()->load($cartId, 'masked_id');
7676
return $this->repository->deleteById($quoteIdMask->getId(), $itemId);
7777
}
78-
79-
/**
80-
* {@inheritdoc}
81-
*/
82-
public function delete(\Magento\Quote\Api\Data\CartItemInterface $cartItem)
83-
{
84-
/** @var $quoteIdMask QuoteIdMask */
85-
$quoteIdMask = $this->quoteIdMaskFactory->create()->load($cartItem->getQuoteId(), 'masked_id');
86-
$cartItem->setQuoteId($quoteIdMask->getId());
87-
return $this->repository->delete($cartItem);
88-
}
8978
}

0 commit comments

Comments
 (0)