@@ -257,13 +257,6 @@ class Create extends \Magento\Framework\DataObject implements \Magento\Checkout\
257
257
*/
258
258
private $ customAttributeList ;
259
259
260
- /**
261
- * Constructor
262
- *
263
- * @var \Magento\Customer\Model\Address\Mapper
264
- */
265
- private $ addressMapper ;
266
-
267
260
/**
268
261
* @param \Magento\Framework\ObjectManagerInterface $objectManager
269
262
* @param \Magento\Framework\Event\ManagerInterface $eventManager
@@ -297,7 +290,6 @@ class Create extends \Magento\Framework\DataObject implements \Magento\Checkout\
297
290
* @param ExtensibleDataObjectConverter|null $dataObjectConverter
298
291
* @param StoreManagerInterface $storeManager
299
292
* @param CustomAttributeListInterface|null $customAttributeList
300
- * @param \Magento\Customer\Model\Address\Mapper $addressMapper
301
293
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
302
294
*/
303
295
public function __construct (
@@ -332,8 +324,7 @@ public function __construct(
332
324
\Magento \Framework \Serialize \Serializer \Json $ serializer = null ,
333
325
ExtensibleDataObjectConverter $ dataObjectConverter = null ,
334
326
StoreManagerInterface $ storeManager = null ,
335
- CustomAttributeListInterface $ customAttributeList = null ,
336
- \Magento \Customer \Model \Address \Mapper $ addressMapper = null
327
+ CustomAttributeListInterface $ customAttributeList = null
337
328
) {
338
329
$ this ->_objectManager = $ objectManager ;
339
330
$ this ->_eventManager = $ eventManager ;
@@ -370,8 +361,6 @@ public function __construct(
370
361
$ this ->storeManager = $ storeManager ?: ObjectManager::getInstance ()->get (StoreManagerInterface::class);
371
362
$ this ->customAttributeList = $ customAttributeList ?: ObjectManager::getInstance ()
372
363
->get (CustomAttributeListInterface::class);
373
- $ this ->addressMapper = $ addressMapper ?: ObjectManager::getInstance ()
374
- ->get (\Magento \Customer \Model \Address \Mapper::class);
375
364
}
376
365
377
366
/**
@@ -1466,7 +1455,6 @@ protected function _setQuoteAddress(\Magento\Quote\Model\Quote\Address $address,
1466
1455
public function setShippingAddress ($ address )
1467
1456
{
1468
1457
if (is_array ($ address )) {
1469
-
1470
1458
$ shippingAddress = $ this ->_objectManager ->create (
1471
1459
\Magento \Quote \Model \Quote \Address::class
1472
1460
)->setData (
@@ -1539,12 +1527,6 @@ public function setBillingAddress($address)
1539
1527
return $ this ;
1540
1528
}
1541
1529
1542
- /**
1543
- * A new quote has been generated everytime, so for storing current form data from default
1544
- * customer address `customer_address_id` need to be set to `null`
1545
- */
1546
- $ address ['customer_address_id ' ] = null ;
1547
-
1548
1530
$ billingAddress = $ this ->_objectManager ->create (Address::class)
1549
1531
->setData ($ address )
1550
1532
->setAddressType (Address::TYPE_BILLING );
0 commit comments