From 5eb39de540bd183ac4b4ab60959b1bac608a56a0 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Mon, 15 Apr 2024 17:26:11 +0100 Subject: [PATCH] Remove AXO unused code --- .../src/Authentication/SdkClientToken.php | 1 - modules/ppcp-axo/extensions.php | 1 - modules/ppcp-axo/src/AxoModule.php | 1 - modules/ppcp-axo/src/Gateway/AxoGateway.php | 2 -- .../src/Helper/PropertiesDictionary.php | 36 ------------------- 5 files changed, 41 deletions(-) diff --git a/modules/ppcp-api-client/src/Authentication/SdkClientToken.php b/modules/ppcp-api-client/src/Authentication/SdkClientToken.php index 1f84171ab..377dd144a 100644 --- a/modules/ppcp-api-client/src/Authentication/SdkClientToken.php +++ b/modules/ppcp-api-client/src/Authentication/SdkClientToken.php @@ -11,7 +11,6 @@ use Psr\Log\LoggerInterface; use WooCommerce\PayPalCommerce\ApiClient\Endpoint\RequestTrait; use WooCommerce\PayPalCommerce\ApiClient\Exception\PayPalApiException; use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException; -use WooCommerce\PayPalCommerce\PPCP; use WP_Error; /** diff --git a/modules/ppcp-axo/extensions.php b/modules/ppcp-axo/extensions.php index f600c555f..fd0ade5b2 100644 --- a/modules/ppcp-axo/extensions.php +++ b/modules/ppcp-axo/extensions.php @@ -13,7 +13,6 @@ use WooCommerce\PayPalCommerce\Axo\Helper\PropertiesDictionary; use WooCommerce\PayPalCommerce\Onboarding\State; use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface; use WooCommerce\PayPalCommerce\WcGateway\Helper\DisplayManager; -use WooCommerce\PayPalCommerce\WcGateway\Settings\Settings; return array( diff --git a/modules/ppcp-axo/src/AxoModule.php b/modules/ppcp-axo/src/AxoModule.php index 1bf49d7e2..6680c9fd7 100644 --- a/modules/ppcp-axo/src/AxoModule.php +++ b/modules/ppcp-axo/src/AxoModule.php @@ -11,7 +11,6 @@ namespace WooCommerce\PayPalCommerce\Axo; use Psr\Log\LoggerInterface; use WooCommerce\PayPalCommerce\ApiClient\Authentication\SdkClientToken; -use WooCommerce\PayPalCommerce\ApiClient\Authentication\UserIdToken; use WooCommerce\PayPalCommerce\ApiClient\Exception\PayPalApiException; use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException; use WooCommerce\PayPalCommerce\Axo\Assets\AxoManager; diff --git a/modules/ppcp-axo/src/Gateway/AxoGateway.php b/modules/ppcp-axo/src/Gateway/AxoGateway.php index 870454d1f..356c35d79 100644 --- a/modules/ppcp-axo/src/Gateway/AxoGateway.php +++ b/modules/ppcp-axo/src/Gateway/AxoGateway.php @@ -20,10 +20,8 @@ use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException; use WooCommerce\PayPalCommerce\ApiClient\Factory\PurchaseUnitFactory; use WooCommerce\PayPalCommerce\ApiClient\Factory\ShippingPreferenceFactory; use WooCommerce\PayPalCommerce\Onboarding\Environment; -use WooCommerce\PayPalCommerce\PPCP; use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface; use WooCommerce\PayPalCommerce\WcGateway\Gateway\TransactionUrlProvider; -use WooCommerce\PayPalCommerce\WcGateway\Processor\AuthorizedPaymentsProcessor; use WooCommerce\PayPalCommerce\WcGateway\Processor\OrderMetaTrait; use WooCommerce\PayPalCommerce\WcGateway\Processor\OrderProcessor; diff --git a/modules/ppcp-axo/src/Helper/PropertiesDictionary.php b/modules/ppcp-axo/src/Helper/PropertiesDictionary.php index d517959c1..024c3649c 100644 --- a/modules/ppcp-axo/src/Helper/PropertiesDictionary.php +++ b/modules/ppcp-axo/src/Helper/PropertiesDictionary.php @@ -14,42 +14,6 @@ namespace WooCommerce\PayPalCommerce\Axo\Helper; */ class PropertiesDictionary { - /** - * Returns the list of possible email widget options. - * - * @return array - */ - public static function email_widget_options(): array { - return array( - 'render' => __( 'Render email input', 'woocommerce-paypal-payments' ), - 'use_widget' => __( 'Use email widget', 'woocommerce-paypal-payments' ), - ); - } - - /** - * Returns the list of possible address widget options. - * - * @return array - */ - public static function address_widget_options(): array { - return array( - 'render' => __( 'Render address options list', 'woocommerce-paypal-payments' ), - 'use_widget' => __( 'Use address widget', 'woocommerce-paypal-payments' ), - ); - } - - /** - * Returns the list of possible address widget options. - * - * @return array - */ - public static function payment_widget_options(): array { - return array( - 'render' => __( 'Render payment options list', 'woocommerce-paypal-payments' ), - 'use_widget' => __( 'Use payment widget', 'woocommerce-paypal-payments' ), - ); - } - /** * Returns the list of possible privacy options. *