@@ -70,7 +70,6 @@ class TierPrice extends AbstractPrice implements TierPriceInterface, BasePricePr
70
70
* @param Session $customerSession
71
71
* @param GroupManagementInterface $groupManagement
72
72
* @param CustomerGroupRetrieverInterface|null $customerGroupRetriever
73
- * @param int|null $customerGroup
74
73
*/
75
74
public function __construct (
76
75
Product $ saleableItem ,
@@ -79,18 +78,15 @@ public function __construct(
79
78
\Magento \Framework \Pricing \PriceCurrencyInterface $ priceCurrency ,
80
79
Session $ customerSession ,
81
80
GroupManagementInterface $ groupManagement ,
82
- CustomerGroupRetrieverInterface $ customerGroupRetriever = null ,
83
- $ customerGroup = null
81
+ CustomerGroupRetrieverInterface $ customerGroupRetriever = null
84
82
) {
85
83
$ quantity = (float )$ quantity ? $ quantity : 1 ;
86
84
parent ::__construct ($ saleableItem , $ quantity , $ calculator , $ priceCurrency );
87
85
$ this ->customerSession = $ customerSession ;
88
86
$ this ->groupManagement = $ groupManagement ;
89
87
$ this ->customerGroupRetriever = $ customerGroupRetriever
90
88
?? \Magento \Framework \App \ObjectManager::getInstance ()->get (CustomerGroupRetrieverInterface::class);
91
- if ($ customerGroup ) {
92
- $ this ->customerGroup = $ customerGroup ;
93
- } elseif ($ saleableItem ->hasCustomerGroupId ()) {
89
+ if ($ saleableItem ->hasCustomerGroupId ()) {
94
90
$ this ->customerGroup = (int ) $ saleableItem ->getCustomerGroupId ();
95
91
} else {
96
92
$ this ->customerGroup = (int ) $ this ->customerGroupRetriever ->getCustomerGroupId ();
0 commit comments