Skip to content

Commit

Permalink
Remove unused members, whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sgabhart22 committed Apr 9, 2024
1 parent 690bee9 commit c0ab4af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions Controller/Checkout/CompleteSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
class CompleteSession extends \Magento\Framework\App\Action\Action
{
protected const GENERIC_COMPLETE_CHECKOUT_ERROR_MESSAGE = 'Unable to complete Amazon Pay checkout.';
/**
* @var \Amazon\Pay\CustomerData\CheckoutSession
*/
private $amazonCheckoutSession;

/**
* @var \Amazon\Pay\Model\CheckoutSessionManagement
Expand Down Expand Up @@ -58,44 +54,33 @@ class CompleteSession extends \Magento\Framework\App\Action\Action
*/
private $cookieMetadataFactory;

/**
* @var \Magento\Checkout\Model\Session
*/
protected $magentoCheckoutSession;

/**
* CompleteSession constructor
*
* @param \Magento\Framework\App\Action\Context $context
* @param \Amazon\Pay\CustomerData\CheckoutSession $amazonCheckoutSession
* @param \Amazon\Pay\Model\CheckoutSessionManagement $checkoutSessionManagement
* @param \Amazon\Pay\Model\AmazonConfig $amazonConfig
* @param \Magento\Framework\Stdlib\CookieManagerInterface $cookieManager
* @param \Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $cookieMetadataFactory
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
* @param \Magento\Checkout\Model\Session $session
* @param ExceptionLogger|null $exceptionLogger
*/
public function __construct(
\Magento\Framework\App\Action\Context $context,
\Amazon\Pay\CustomerData\CheckoutSession $amazonCheckoutSession,
\Amazon\Pay\Model\CheckoutSessionManagement $checkoutSessionManagement,
\Amazon\Pay\Model\AmazonConfig $amazonConfig,
\Magento\Framework\Stdlib\CookieManagerInterface $cookieManager,
\Magento\Framework\Stdlib\Cookie\CookieMetadataFactory $cookieMetadataFactory,
\Magento\Store\Model\StoreManagerInterface $storeManager,
\Magento\Checkout\Model\Session $session,
ExceptionLogger $exceptionLogger = null
) {
parent::__construct($context);
$this->amazonCheckoutSession = $amazonCheckoutSession;
$this->amazonCheckoutSessionManagement = $checkoutSessionManagement;
$this->amazonConfig = $amazonConfig;
$this->exceptionLogger = $exceptionLogger ?: ObjectManager::getInstance()->get(ExceptionLogger::class);
$this->cookieManager = $cookieManager;
$this->cookieMetadataFactory = $cookieMetadataFactory;
$this->storeManager = $storeManager;
$this->magentoCheckoutSession = $session;
}

/**
Expand Down
1 change: 0 additions & 1 deletion Model/Resolver/CheckoutSessionDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public function __construct(
* @return array
* @throws GraphQlInputException
*/

public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
{
$amazonSessionId = $args['amazonSessionId'] ?? false;
Expand Down

0 comments on commit c0ab4af

Please sign in to comment.