original_string: protected function deleteCartCheckout()
      {
          $cart_id = $this->getSubmitted('cart.action.delete');
  
          if (!empty($cart_id)) {
              $this->setSubmitted('cart.action.update', true);
              $this->cart->delete($cart_id);
          }
      }
code: protected function deleteCartCheckout()
      {
          $cart_id = $this->getSubmitted('cart.action.delete');
  
          if (!empty($cart_id)) {
              $this->setSubmitted('cart.action.update', true);
              $this->cart->delete($cart_id);
          }
      }
code_tokens: protected function deleteCartCheckout ( ) { $ cart_id = $ this -> getSubmitted ( 'cart.action.delete' ) ; if ( ! empty ( $ cart_id ) ) { $ this -> setSubmitted ( 'cart.action.update' , true ) ; $ this -> cart -> delete ( $ cart_id ) ; } }
docstring: Deletes an item from the cart
docstring_tokens: Deletes an item from the cart