Skip to content

Commit

Permalink
fix: remove unused imports (#135)
Browse files Browse the repository at this point in the history
authored-by: P.R. van Puijenbroek <peep@toppy.nl>
  • Loading branch information
Swahjak committed Jan 10, 2024
1 parent 332e1d8 commit c5e50e2
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 59 deletions.
5 changes: 0 additions & 5 deletions Block/Catalog/Product/ProductList/Toolbar/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@


use Closure;
use Magento\Catalog\Model\CategoryFactory;
use Magento\Catalog\Model\Layer\Resolver as LayerResolver;
use Magento\CatalogInventory\Api\StockConfigurationInterface;
use Magento\CatalogInventory\Api\StockRegistryInterface;
use Magento\Framework\Exception\LocalizedException;
use Magento\InventorySalesApi\Api\AreProductsSalableInterface;
use Magento\Store\Model\StoreManagerInterface;
use Psr\Log\LoggerInterface;
use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\NavigationContext\CurrentContext;
use Tweakwise\Magento2Tweakwise\Model\Client\Request\ProductSearchRequest;
Expand Down
1 change: 0 additions & 1 deletion Block/LayeredNavigation/Navigation/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tweakwise\Magento2Tweakwise\Block\LayeredNavigation\Navigation;

use Tweakwise\Magento2Tweakwise\Exception\ApiException;
use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\Filter\Item;
use Tweakwise\Magento2Tweakwise\Model\Client\Request\ProductSearchRequest;
use Tweakwise\Magento2Tweakwise\Model\Client\Type\FacetType\SettingsType;
Expand Down
1 change: 0 additions & 1 deletion Controller/Ajax/Facets.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\Controller\Result\JsonFactory;
use Tweakwise\Magento2Tweakwise\Exception\ApiException;
use Tweakwise\Magento2Tweakwise\Model\Client;
use Tweakwise\Magento2Tweakwise\Model\Client\RequestFactory;

Expand Down
3 changes: 0 additions & 3 deletions Controller/Ajax/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tweakwise\Magento2Tweakwise\Controller\Ajax;

use Magento\Framework\Controller\ResultFactory;
use Tweakwise\Magento2Tweakwise\Model\AjaxNavigationResult;
use Tweakwise\Magento2Tweakwise\Model\AjaxResultInitializer\InitializerInterface;
use Tweakwise\Magento2Tweakwise\Model\Client\Timer;
Expand All @@ -12,9 +11,7 @@
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\Controller\ResultInterface;
use Magento\Framework\Exception\NotFoundException;
use Magento\Framework\Stdlib\CookieManagerInterface;
use Tweakwise\Magento2Tweakwise\Model\FilterFormInputProvider\HashInputProvider;
use Magento\Framework\Exception\InputException;

/**
* Class Navigation
Expand Down
23 changes: 0 additions & 23 deletions Model/Catalog/Product/AbstractCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,7 @@

namespace Tweakwise\Magento2Tweakwise\Model\Catalog\Product;

use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\NavigationContext;
use Tweakwise\Magento2Tweakwise\Model\Client\Request\ProductSearchRequest;
use Magento\Catalog\Model\Category;
use Magento\Catalog\Model\Indexer\Product\Flat\State;
use Magento\Catalog\Model\Product\OptionFactory;
use Magento\Catalog\Model\ResourceModel\Helper as CatalogResourceHelper;
use Magento\Catalog\Model\ResourceModel\Product\Collection as ProductCollection;
use Magento\Catalog\Model\ResourceModel\Url;
use Magento\Customer\Api\GroupManagementInterface;
use Magento\Customer\Model\Session;
use Magento\Eav\Model\Config as EavConfig;
use Magento\Eav\Model\EntityFactory as EavEntityFactory;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\ResourceConnection;
use Magento\Framework\Data\Collection\Db\FetchStrategyInterface;
use Magento\Framework\Data\Collection\EntityFactory as CollectionEntityFactory;
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\Event\ManagerInterface;
use Magento\Framework\Module\Manager;
use Magento\Framework\Stdlib\DateTime;
use Magento\Framework\Stdlib\DateTime\TimezoneInterface;
use Magento\Framework\Validator\UniversalFactory;
use Magento\Store\Model\StoreManagerInterface;
use Psr\Log\LoggerInterface;
use Zend_Db_Select;

abstract class AbstractCollection extends ProductCollection
Expand Down
1 change: 0 additions & 1 deletion Model/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use Tweakwise\Magento2Tweakwise\Model\Client\Response;
use Tweakwise\Magento2Tweakwise\Model\Client\ResponseFactory;
use Tweakwise\Magento2Tweakwise\Model\Client\Timer;
use Tweakwise\Magento2Tweakwise\Model\Client\Timers;
use Tweakwise\Magento2TweakwiseExport\Model\Logger;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\GuzzleException;
Expand Down
1 change: 0 additions & 1 deletion Model/Client/Request/FacetAttributeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace Tweakwise\Magento2Tweakwise\Model\Client\Request;

use Magento\Store\Model\StoreManager;
use Tweakwise\Magento2Tweakwise\Exception\ApiException;
use Tweakwise\Magento2Tweakwise\Model\Client\Request;
use Tweakwise\Magento2Tweakwise\Model\Client\Response\FacetAttributesResponse;
use Tweakwise\Magento2TweakwiseExport\Model\Helper;
Expand Down
1 change: 0 additions & 1 deletion Model/Client/Request/ProductSearchRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

use Tweakwise\Magento2Tweakwise\Model\Config;
use Tweakwise\Magento2TweakwiseExport\Model\Helper;
use Magento\Store\Model\Store;
use Magento\Store\Model\StoreManager;

/**
Expand Down
3 changes: 0 additions & 3 deletions Model/Client/Request/Recommendations/FeaturedRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@

namespace Tweakwise\Magento2Tweakwise\Model\Client\Request\Recommendations;

use Magento\Catalog\Helper\Category;
use Magento\Catalog\Model\Layer;
use Magento\Framework\Registry;
use Magento\Store\Model\StoreManager;
use Tweakwise\Magento2Tweakwise\Exception\ApiException;
use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\Filter;
use Tweakwise\Magento2Tweakwise\Model\Client\Request;
use Tweakwise\Magento2Tweakwise\Model\Client\Response\RecommendationsResponse;
use Tweakwise\Magento2TweakwiseExport\Model\Helper;
Expand Down
2 changes: 0 additions & 2 deletions Model/Client/Response/RecommendationsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@

namespace Tweakwise\Magento2Tweakwise\Model\Client\Response;

use Tweakwise\Magento2Tweakwise\Model\Client\Request;
use Tweakwise\Magento2Tweakwise\Model\Client\Response;
use Tweakwise\Magento2Tweakwise\Model\Client\Type\ItemType;
use Tweakwise\Magento2TweakwiseExport\Model\Helper;

/**
* Class RecommendationsResponse
Expand Down
3 changes: 0 additions & 3 deletions Model/Client/Type/SuggestionType/SuggestionTypeSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Tweakwise\Magento2Tweakwise\Model\Client\Type\SuggestionType;

use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\Url\Strategy\QueryParameterStrategy;
use Tweakwise\Magento2TweakwiseExport\Model\Helper;
use Magento\Framework\UrlInterface;

/**
* Class SuggestionTypeSearch
Expand Down
1 change: 0 additions & 1 deletion Model/Config/Source/Facet.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Tweakwise\Magento2Tweakwise\Exception\ApiException;
use Tweakwise\Magento2Tweakwise\Model\Client;
use Tweakwise\Magento2Tweakwise\Model\Client\RequestFactory;
use Tweakwise\Magento2Tweakwise\Model\Client\Response\Catalog\TemplateResponse;
use Magento\Framework\Data\OptionSourceInterface;

class Facet implements OptionSourceInterface
Expand Down
1 change: 0 additions & 1 deletion Model/Config/Source/FacetAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use Tweakwise\Magento2Tweakwise\Exception\ApiException;
use Tweakwise\Magento2Tweakwise\Model\Client;
use Tweakwise\Magento2Tweakwise\Model\Client\RequestFactory;
use Tweakwise\Magento2Tweakwise\Model\Client\Response\Catalog\TemplateResponse;
use Magento\Framework\Data\OptionSourceInterface;

class FacetAttribute implements OptionSourceInterface
Expand Down
1 change: 0 additions & 1 deletion Model/FilterFormInputProvider/SearchInputProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\NavigationContext\CurrentContext;
use Tweakwise\Magento2Tweakwise\Model\Config;
use Tweakwise\Magento2Tweakwise\Model\Seo\FilterHelper;
use Tweakwise\Magento2TweakwiseExport\Model\Helper;

class SearchInputProvider implements FilterFormInputProviderInterface
{
Expand Down
3 changes: 0 additions & 3 deletions Model/Seo/FilterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
use Tweakwise\Magento2Tweakwise\Model\Config;
use Tweakwise\Magento2Tweakwise\Model\ConfigAttributeProcessService;
use Magento\Catalog\Model\Layer\Resolver;
use Magento\Catalog\Model\Product;
use Magento\Eav\Api\AttributeRepositoryInterface;
use Magento\Framework\Api\AttributeInterface;
use Magento\Framework\Exception\LocalizedException;

class FilterHelper
{
Expand Down
1 change: 0 additions & 1 deletion Model/Swatches/SwatchAttributeResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\Filter\Item;
use Magento\Catalog\Api\Data\ProductAttributeInterface;
use Magento\Eav\Api\AttributeRepositoryInterface;
use Magento\Eav\Model\Entity\Attribute\Source\SourceInterface;
use Magento\Eav\Model\Entity\Attribute\Source\Table;
use Magento\Framework\Api\SearchCriteriaBuilder;
use Magento\Swatches\Model\SwatchAttributeCodes;
Expand Down
4 changes: 0 additions & 4 deletions Observer/CreateTweakwiseSlugsAfterSaveAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

namespace Tweakwise\Magento2Tweakwise\Observer;

use Tweakwise\Magento2Tweakwise\Api\AttributeSlugRepositoryInterface;
use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\Filter;
use Tweakwise\Magento2Tweakwise\Model\Catalog\Layer\Url\Strategy\FilterSlugManager;
use Magento\Framework\Api\SearchCriteriaBuilder;
use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Magento\Framework\Exception\NoSuchEntityException;

class CreateTweakwiseSlugsAfterSaveAttribute implements ObserverInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Tweakwise\Magento2Tweakwise\Model\Config;
use Magento\Catalog\Model\Category;
use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;
use Magento\Eav\Setup\EavSetup;
use Magento\Eav\Setup\EavSetupFactory;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;
Expand Down
3 changes: 0 additions & 3 deletions Setup/Patch/Data/UpdateLabelNamesPatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

namespace Tweakwise\Magento2Tweakwise\Setup\Patch\Data;

use Magento\Catalog\Model\Category;
use Magento\Catalog\Model\Product;
use Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Tweakwise\Magento2Tweakwise\Model\Config;
Expand Down

0 comments on commit c5e50e2

Please sign in to comment.