From dcbab851d2690474ca3d25dc16d955069f6131fe Mon Sep 17 00:00:00 2001 From: Serhii Koval Date: Thu, 16 Jan 2025 22:33:08 +0100 Subject: [PATCH 1/2] Remove unused dependencies in Block\Js.php Not all dependencies were removed from Block\Js.php after Sentry remove. Backward incompatible changes. --- Block/Js.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Block/Js.php b/Block/Js.php index 469f1de..a001c54 100644 --- a/Block/Js.php +++ b/Block/Js.php @@ -20,21 +20,6 @@ class Js extends \Magento\Framework\View\Element\Text */ private $packageInfo; - /** - * @var \Magento\Framework\App\CacheInterface - */ - public $cache; - - /** - * @var \Magento\Framework\HTTP\Client\Curl - */ - protected $curl; - - /** - * @var \Psr\Log\LoggerInterface - */ - public $logger; - public function __construct( \Magento\Framework\View\Element\Context $context, \Bread\BreadCheckout\Helper\Data $helper, @@ -46,9 +31,6 @@ public function __construct( ) { $this->helper = $helper; $this->packageInfo = $packageInfo; - $this->cache = $cache; - $this->curl = $curl; - $this->logger = $logger; parent::__construct( $context, From f7a7ae9bec00057f82bed5ff8361a6bfd7bdcbce Mon Sep 17 00:00:00 2001 From: Serhii Koval Date: Thu, 16 Jan 2025 22:36:14 +0100 Subject: [PATCH 2/2] Remove unused dependencies in Block\Js.php Not all dependencies were removed from Block\Js.php after Sentry remove. Backward incompatible changes. --- Block/Js.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Block/Js.php b/Block/Js.php index a001c54..543b866 100644 --- a/Block/Js.php +++ b/Block/Js.php @@ -24,9 +24,6 @@ public function __construct( \Magento\Framework\View\Element\Context $context, \Bread\BreadCheckout\Helper\Data $helper, \Magento\Framework\Module\PackageInfo $packageInfo, - \Magento\Framework\App\CacheInterface $cache, - \Magento\Framework\HTTP\Client\Curl $curl, - \Bread\BreadCheckout\Helper\Log $logger, array $data = [] ) { $this->helper = $helper;