Skip to content

Commit 21112c6

Browse files
author
Prabhu Ram
committed
MC-19226: Cart Promotions :: Store promotions detail on the quote
- static error fix
1 parent b62c1a0 commit 21112c6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/code/Magento/SalesRule/Model/Quote/Discount.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Magento\SalesRule\Model\Quote;
77

8-
use Magento\SalesRule\Model\Rule\Action\Discount\DataFactory;
98
use Magento\Framework\App\ObjectManager;
109
use Magento\SalesRule\Api\Data\RuleDiscountInterfaceFactory;
1110
use Magento\SalesRule\Api\Data\DiscountDataInterfaceFactory;
@@ -41,11 +40,6 @@ class Discount extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal
4140
*/
4241
protected $priceCurrency;
4342

44-
/**
45-
* @var \Magento\SalesRule\Model\Rule\Action\Discount\DataFactory
46-
*/
47-
private $discountFactory;
48-
4943
/**
5044
* @var RuleDiscountInterfaceFactory
5145
*/
@@ -61,7 +55,6 @@ class Discount extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal
6155
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
6256
* @param \Magento\SalesRule\Model\Validator $validator
6357
* @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
64-
* @param DataFactory|null $discountDataFactory
6558
* @param RuleDiscountInterfaceFactory|null $discountInterfaceFactory
6659
* @param DiscountDataInterfaceFactory|null $discountDataInterfaceFactory
6760
*/
@@ -70,7 +63,6 @@ public function __construct(
7063
\Magento\Store\Model\StoreManagerInterface $storeManager,
7164
\Magento\SalesRule\Model\Validator $validator,
7265
\Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency,
73-
DataFactory $discountDataFactory = null,
7466
RuleDiscountInterfaceFactory $discountInterfaceFactory = null,
7567
DiscountDataInterfaceFactory $discountDataInterfaceFactory = null
7668
) {
@@ -79,7 +71,6 @@ public function __construct(
7971
$this->calculator = $validator;
8072
$this->storeManager = $storeManager;
8173
$this->priceCurrency = $priceCurrency;
82-
$this->discountFactory = $discountDataFactory ?: ObjectManager::getInstance()->get(DataFactory::class);
8374
$this->discountInterfaceFactory = $discountInterfaceFactory
8475
?: ObjectManager::getInstance()->get(RuleDiscountInterfaceFactory::class);
8576
$this->discountDataInterfaceFactory = $discountDataInterfaceFactory

0 commit comments

Comments
 (0)