Skip to content

Commit 9722c7d

Browse files
committed
MAGE-837 Remove unused method + doc fixes
1 parent 5826371 commit 9722c7d

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Helper/Entity/ProductHelper.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ public function isAttributeEnabled($additionalAttributes, $attributeName)
214214
* @param $productIds
215215
* @param $onlyVisible
216216
* @param $includeNotVisibleIndividually
217-
* @return Collection
218217
*/
219218
public function getProductCollectionQuery(
220219
$storeId,
@@ -601,20 +600,6 @@ protected function addAttribute($attribute, $defaultData, $customData, $addition
601600
return $customData;
602601
}
603602

604-
protected function getCategoryPaths($product, $category)
605-
{
606-
$category->getUrlInstance()->setStore($product->getStoreId());
607-
$path = [];
608-
609-
foreach ($category->getPathIds() as $treeCategoryId) {
610-
$name = $this->categoryHelper->getCategoryName($treeCategoryId, $storeId);
611-
if ($name) {
612-
$categoryIds[] = $treeCategoryId;
613-
$path[] = $name;
614-
}
615-
}
616-
}
617-
618603
/**
619604
* A category should only be indexed if in the path of the current store and has a valid name.
620605
*
@@ -1437,7 +1422,7 @@ function($sort) {
14371422
* Moving to ReplicaManager class
14381423
* @param string $indexName
14391424
* @param int $storeId
1440-
* @param bool $sortingAttribute
1425+
* @param array|bool $sortingAttribute
14411426
* @return void
14421427
* @throws AlgoliaException
14431428
* @throws ExceededRetriesException

0 commit comments

Comments
 (0)