From 0023d118ab195aa4c00f33f397f053632196c32e Mon Sep 17 00:00:00 2001
From: Cari Spruiell <cspruiell@ebay.com>
Date: Wed, 22 Apr 2015 14:37:39 -0500
Subject: [PATCH] MAGETWO-36376: Magento\Quote\Api\GuestCartItemRepository

 - removed delete methods from interface and implementation
---
 .../Quote/Api/GuestCartItemRepositoryInterface.php    |  9 ---------
 .../Quote/Model/GuestCart/GuestCartItemRepository.php | 11 -----------
 2 files changed, 20 deletions(-)

diff --git a/app/code/Magento/Quote/Api/GuestCartItemRepositoryInterface.php b/app/code/Magento/Quote/Api/GuestCartItemRepositoryInterface.php
index 1e327884d7b..40138b5e0cf 100644
--- a/app/code/Magento/Quote/Api/GuestCartItemRepositoryInterface.php
+++ b/app/code/Magento/Quote/Api/GuestCartItemRepositoryInterface.php
@@ -30,15 +30,6 @@ interface GuestCartItemRepositoryInterface
      */
     public function save(\Magento\Quote\Api\Data\CartItemInterface $cartItem);
 
-    /**
-     * Delete cart item
-     *
-     * @param \Magento\Quote\Api\Data\CartItemInterface $cartItem
-     * @return void
-     * @throws \Magento\Framework\Exception\CouldNotSaveException
-     */
-    public function delete(\Magento\Quote\Api\Data\CartItemInterface $cartItem);
-
     /**
      * Removes the specified item from the specified cart.
      *
diff --git a/app/code/Magento/Quote/Model/GuestCart/GuestCartItemRepository.php b/app/code/Magento/Quote/Model/GuestCart/GuestCartItemRepository.php
index ce6a2d24d26..a3750601070 100644
--- a/app/code/Magento/Quote/Model/GuestCart/GuestCartItemRepository.php
+++ b/app/code/Magento/Quote/Model/GuestCart/GuestCartItemRepository.php
@@ -75,15 +75,4 @@ class GuestCartItemRepository implements \Magento\Quote\Api\GuestCartItemReposit
         $quoteIdMask = $this->quoteIdMaskFactory->create()->load($cartId, 'masked_id');
         return $this->repository->deleteById($quoteIdMask->getId(), $itemId);
     }
-
-    /**
-     * {@inheritdoc}
-     */
-    public function delete(\Magento\Quote\Api\Data\CartItemInterface $cartItem)
-    {
-        /** @var $quoteIdMask QuoteIdMask */
-        $quoteIdMask = $this->quoteIdMaskFactory->create()->load($cartItem->getQuoteId(), 'masked_id');
-        $cartItem->setQuoteId($quoteIdMask->getId());
-        return $this->repository->delete($cartItem);
-    }
 }
-- 
GitLab