Skip to content

Commit

Permalink
Fixing unused classes, and change names
Browse files Browse the repository at this point in the history
  • Loading branch information
ugljesaspx committed Sep 16, 2024
1 parent ced4270 commit 34b8961
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*
*/

namespace Nosto\Tagging\Model\Indexer\Dimensions\Product;
namespace Nosto\Tagging\Model\Indexer\Dimensions\Category;

use InvalidArgumentException;
use Magento\Framework\App\Cache\TypeListInterface;
Expand Down
4 changes: 2 additions & 2 deletions Model/Indexer/Dimensions/ModeSwitcher/ModeSwitcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

use Magento\Indexer\Model\DimensionMode;
use Magento\Indexer\Model\DimensionModes;
use Nosto\Tagging\Model\Indexer\Dimensions\Product\DimensionModeConfiguration;
use Nosto\Tagging\Model\Indexer\Dimensions\Product\ModeSwitcherConfiguration;
use Nosto\Tagging\Model\Indexer\Dimensions\ModeSwitcher\DimensionModeConfiguration;
use Nosto\Tagging\Model\Indexer\Dimensions\ModeSwitcher\ModeSwitcherConfiguration;

class ModeSwitcher implements ModeSwitcherInterface
{
Expand Down
7 changes: 1 addition & 6 deletions Model/ResourceModel/Magento/Category/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ class Collection extends MagentoCategoryCollection
*/
public function addActiveFilter()
{
echo '<pre>';
print_r(44);
die;
// @TODO: Here should be included in the menu
return $this->addAttributeToFilter('status', ['eq' => 1]);
}
Expand All @@ -59,9 +56,7 @@ public function addActiveFilter()
*/
public function addIdsToFilter(array $ids)
{
echo '<pre>';
print_r(222);
die;

return $this->addAttributeToFilter($this->getIdFieldName(), ['in' => $ids]);
}
}
5 changes: 1 addition & 4 deletions Model/Service/Sync/Upsert/Category/AsyncBulkConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
use Nosto\NostoException;
use Nosto\Tagging\Helper\Scope as NostoScopeHelper;
use Nosto\Tagging\Logger\Logger;
use Nosto\Tagging\Model\ResourceModel\Magento\Product\CollectionFactory;
use Magento\Catalog\Model\ResourceModel\Category\CollectionFactory;
use Nosto\Tagging\Model\Service\Sync\AbstractBulkConsumer;
use Nosto\Tagging\Model\Service\Sync\Upsert\SyncService;

Expand Down Expand Up @@ -100,9 +100,6 @@ public function __construct(
*/
public function doOperation(array $categoryIds, string $storeId)
{
echo '<pre>';
print_r(122);
die;
$store = $this->nostoScopeHelper->getStore($storeId);
$categoryCollection = $this->collectionFactory->create()
->addIdsToFilter($categoryIds)
Expand Down
3 changes: 0 additions & 3 deletions Model/Service/Sync/Upsert/Category/BulkPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class BulkPublisher extends AbstractBulkPublisher
*/
public function getTopicName(): string
{
echo '<pre>';
print_r(122);
die;
return self::NOSTO_SYNC_MESSAGE_QUEUE;
}

Expand Down

0 comments on commit 34b8961

Please sign in to comment.