Skip to content

Commit 673a935

Browse files
lewisvonckengelanivishal
authored andcommitted
[TASK] Cleaned up incorrect dependency injection
1 parent 68b6e67 commit 673a935

File tree

1 file changed

+1
-10
lines changed
  • app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action

1 file changed

+1
-10
lines changed

app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Row.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
use Magento\Catalog\Model\Indexer\Product\Flat\FlatTableBuilder;
99
use Magento\Catalog\Model\Indexer\Product\Flat\TableBuilder;
10-
use Magento\Framework\EntityManager\MetadataPool;
11-
use Magento\Catalog\Api\Data\ProductInterface;
1210

1311
/**
1412
* Class Row reindex action
@@ -24,10 +22,6 @@ class Row extends \Magento\Catalog\Model\Indexer\Product\Flat\AbstractAction
2422
* @var Eraser
2523
*/
2624
protected $flatItemEraser;
27-
/**
28-
* @var MetadataPool
29-
*/
30-
private $metadataPool;
3125

3226
/**
3327
* @param \Magento\Framework\App\ResourceConnection $resource
@@ -38,7 +32,6 @@ class Row extends \Magento\Catalog\Model\Indexer\Product\Flat\AbstractAction
3832
* @param FlatTableBuilder $flatTableBuilder
3933
* @param Indexer $flatItemWriter
4034
* @param Eraser $flatItemEraser
41-
* @param MetadataPool $metadataPool
4235
*/
4336
public function __construct(
4437
\Magento\Framework\App\ResourceConnection $resource,
@@ -48,8 +41,7 @@ public function __construct(
4841
TableBuilder $tableBuilder,
4942
FlatTableBuilder $flatTableBuilder,
5043
Indexer $flatItemWriter,
51-
Eraser $flatItemEraser,
52-
MetadataPool $metadataPool
44+
Eraser $flatItemEraser
5345
) {
5446
parent::__construct(
5547
$resource,
@@ -61,7 +53,6 @@ public function __construct(
6153
);
6254
$this->flatItemWriter = $flatItemWriter;
6355
$this->flatItemEraser = $flatItemEraser;
64-
$this->metadataPool = $metadataPool;
6556
}
6657

6758
/**

0 commit comments

Comments
 (0)