Skip to content

Commit 44e2de8

Browse files
author
Volodymyr Kublytskyi
committed
MAGETWO-66608: Cover OfflineShipping module with @api annotation
- removed unused code
1 parent 6faedce commit 44e2de8

File tree

1 file changed

+2
-24
lines changed
  • app/code/Magento/OfflineShipping/Model/Carrier

1 file changed

+2
-24
lines changed

app/code/Magento/OfflineShipping/Model/Carrier/Pickup.php

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,8 @@ public function __construct(
6363
*/
6464
public function collectRates(RateRequest $request)
6565
{
66-
if (!$this->getConfigFlag('active')) {
67-
return false;
68-
}
69-
70-
/** @var \Magento\Shipping\Model\Rate\Result $result */
71-
$result = $this->_rateResultFactory->create();
72-
73-
if (!empty($rate)) {
74-
/** @var \Magento\Quote\Model\Quote\Address\RateResult\Method $method */
75-
$method = $this->_rateMethodFactory->create();
76-
77-
$method->setCarrier('pickup');
78-
$method->setCarrierTitle($this->getConfigData('title'));
79-
80-
$method->setMethod('store');
81-
$method->setMethodTitle(__('Store Pickup'));
82-
83-
$method->setPrice(0);
84-
$method->setCost(0);
85-
86-
$result->append($method);
87-
}
88-
89-
return $result;
66+
// Pickup shipping method is not supported in Magento2 yet.
67+
return false;
9068
}
9169

9270
/**

0 commit comments

Comments
 (0)