Skip to content

Commit 763fa0f

Browse files
author
Oleh Posyniak
committed
MAGETWO-45200: Fix report
1 parent c9c6685 commit 763fa0f

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

app/code/Magento/Payment/Model/Method/Adapter.php

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Magento\Framework\Exception\LocalizedException;
1111
use Magento\Framework\Exception\NotFoundException;
1212
use Magento\Payment\Gateway\Command\CommandPoolInterface;
13-
use Magento\Payment\Gateway\Config\ValueHandlerPool;
1413
use Magento\Payment\Gateway\Config\ValueHandlerPoolInterface;
1514
use Magento\Payment\Gateway\Data\PaymentDataObjectFactory;
1615
use Magento\Payment\Gateway\Validator\ValidatorPoolInterface;
@@ -354,22 +353,6 @@ private function getConfiguredValue($field, $storeId = null)
354353
return $handler->handle($subject, $storeId ?: $this->getStore());
355354
}
356355

357-
/**
358-
* Return value without applying custom handlers
359-
*
360-
* @param string $field
361-
* @param null $storeId
362-
* @return mixed
363-
*/
364-
private function getDefaultConfiguredValue($field, $storeId = null) {
365-
$handler = $this->valueHandlerPool->get(ValueHandlerPool::DEFAULT_HANDLER);
366-
$subject = [
367-
'field' => $field
368-
];
369-
370-
return $handler->handle($subject, $storeId ?: $this->getStore());
371-
}
372-
373356
/**
374357
* {inheritdoc}
375358
*/
@@ -378,18 +361,6 @@ public function getConfigData($field, $storeId = null)
378361
return $this->getConfiguredValue($field, $storeId);
379362
}
380363

381-
/**
382-
* Retrieve default information from payment configuration
383-
*
384-
* @param string $field
385-
* @param int|string|null|\Magento\Store\Model\Store $storeId
386-
*
387-
* @return mixed
388-
*/
389-
public function getDefaultConfigData($field, $storeId = null) {
390-
return $this->getDefaultConfiguredValue($field, $storeId);
391-
}
392-
393364
/**
394365
* {inheritdoc}
395366
*/

0 commit comments

Comments
 (0)