Skip to content

Commit ec91036

Browse files
committed
Cleaning up unused code.
1 parent ab59159 commit ec91036

File tree

8 files changed

+10
-15
lines changed

8 files changed

+10
-15
lines changed

app/code/Magento/CatalogInventory/Model/ProductCollectionStockCondition.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace Magento\CatalogInventory\Model;
77

88
use Magento\Catalog\Model\CollectionConditionInterface;
9-
use Magento\Eav\Model\Entity\Collection\AbstractCollection;
109
use Magento\Framework\Data\Collection\AbstractDb;
1110
use Magento\Framework\Data\CollectionModifierInterface;
1211

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Item/StockItemCriteria.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
namespace Magento\CatalogInventory\Model\ResourceModel\Stock\Item;
88

9+
use Magento\CatalogInventory\Api\StockItemCriteriaInterface;
910
use Magento\Framework\Data\AbstractCriteria;
10-
use Magento\CatalogInventory\Model\ResourceModel\Stock\Item\StockItemCriteriaMapper;
1111

1212
/**
1313
* Class StockItemCriteria
1414
*/
15-
class StockItemCriteria extends AbstractCriteria implements \Magento\CatalogInventory\Api\StockItemCriteriaInterface
15+
class StockItemCriteria extends AbstractCriteria implements StockItemCriteriaInterface
1616
{
1717
/**
1818
* @param string $mapper
@@ -80,10 +80,10 @@ public function setQtyFilter($comparisonMethod, $qty)
8080
/**
8181
* Add Criteria object
8282
*
83-
* @param \Magento\CatalogInventory\Api\StockItemCriteriaInterface $criteria
83+
* @param StockItemCriteriaInterface $criteria
8484
* @return bool
8585
*/
86-
public function addCriteria(\Magento\CatalogInventory\Api\StockItemCriteriaInterface $criteria)
86+
public function addCriteria(StockItemCriteriaInterface $criteria)
8787
{
8888
$this->data[self::PART_CRITERIA_LIST]['list'][] = $criteria;
8989
return true;

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Status/StockStatusCriteria.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
namespace Magento\CatalogInventory\Model\ResourceModel\Stock\Status;
88

9+
use Magento\CatalogInventory\Api\StockStatusCriteriaInterface;
910
use Magento\Framework\Data\AbstractCriteria;
10-
use Magento\CatalogInventory\Model\ResourceModel\Stock\Status\StockStatusCriteriaMapper;
1111

1212
/**
1313
* Class StockStatusCriteria
1414
*/
15-
class StockStatusCriteria extends AbstractCriteria implements \Magento\CatalogInventory\Api\StockStatusCriteriaInterface
15+
class StockStatusCriteria extends AbstractCriteria implements StockStatusCriteriaInterface
1616
{
1717
/**
1818
* @param string $mapper
@@ -50,7 +50,7 @@ public function setQtyFilter($qty)
5050
/**
5151
* @inheritdoc
5252
*/
53-
public function addCriteria(\Magento\CatalogInventory\Api\StockStatusCriteriaInterface $criteria)
53+
public function addCriteria(StockStatusCriteriaInterface $criteria)
5454
{
5555
$this->data[self::PART_CRITERIA_LIST]['list'][] = $criteria;
5656
}

app/code/Magento/CatalogInventory/Model/StockRegistry.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getStock($scopeId = null)
8080
/**
8181
* @param int $productId
8282
* @param int $scopeId
83-
* @return \Magento\CatalogInventory\Api\Data\StockItemInterface
83+
* @return StockItemInterface
8484
*/
8585
public function getStockItem($productId, $scopeId = null)
8686
{
@@ -91,7 +91,7 @@ public function getStockItem($productId, $scopeId = null)
9191
/**
9292
* @param string $productSku
9393
* @param int $scopeId
94-
* @return \Magento\CatalogInventory\Api\Data\StockItemInterface
94+
* @return StockItemInterface
9595
* @throws \Magento\Framework\Exception\NoSuchEntityException
9696
*/
9797
public function getStockItemBySku($productSku, $scopeId = null)
@@ -167,7 +167,7 @@ public function getLowStockItems($scopeId, $qty, $currentPage = 1, $pageSize = 0
167167
/**
168168
* @inheritdoc
169169
*/
170-
public function updateStockItemBySku($productSku, \Magento\CatalogInventory\Api\Data\StockItemInterface $stockItem)
170+
public function updateStockItemBySku($productSku, StockItemInterface $stockItem)
171171
{
172172
$productId = $this->resolveProductId($productSku);
173173
$websiteId = $stockItem->getWebsiteId() ?: null;

app/code/Magento/CatalogInventory/Model/StockRegistryProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Magento\CatalogInventory\Api\StockCriteriaInterfaceFactory;
1616
use Magento\CatalogInventory\Api\StockItemCriteriaInterfaceFactory;
1717
use Magento\CatalogInventory\Api\StockStatusCriteriaInterfaceFactory;
18-
use Magento\Store\Model\StoreManagerInterface;
1918

2019
/**
2120
* Class StockRegistryProvider

app/code/Magento/CatalogInventory/Setup/Patch/Data/ConvertSerializedDataToJson.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Magento\CatalogInventory\Setup\Patch\Data;
88

9-
use Magento\Framework\App\ResourceConnection;
109
use Magento\Framework\DB\DataConverter\SerializedToJson;
1110
use Magento\Framework\DB\FieldDataConverterFactory;
1211
use Magento\Framework\DB\Select\QueryModifierFactory;

app/code/Magento/CatalogInventory/Setup/Patch/Data/CreateDefaultStock.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
use Magento\Eav\Setup\EavSetup;
1010
use Magento\Eav\Setup\EavSetupFactory;
11-
use Magento\Framework\App\ResourceConnection;
1211
use Magento\Framework\Setup\ModuleDataSetupInterface;
1312
use Magento\Framework\Setup\Patch\DataPatchInterface;
1413
use Magento\Framework\Setup\Patch\PatchVersionInterface;

app/code/Magento/CatalogInventory/Setup/Patch/Data/UpdateStockItemsWebsite.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Magento\CatalogInventory\Setup\Patch\Data;
88

99
use Magento\CatalogInventory\Model\Indexer\Stock\Processor;
10-
use Magento\Framework\App\ResourceConnection;
1110
use Magento\Framework\Setup\ModuleDataSetupInterface;
1211
use Magento\Framework\Setup\Patch\DataPatchInterface;
1312
use Magento\Framework\Setup\Patch\PatchVersionInterface;

0 commit comments

Comments
 (0)