From 09cbaede293d3d9cef4c9f7a15a55f8bbb3a2e4e Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 30 Dec 2018 14:01:10 +0100 Subject: [PATCH] TASK: Remove unused code E.g. use statement and injected object manager. --- Classes/Domain/Index/TcaIndexer/PagesIndexer.php | 11 +---------- Classes/Domain/Model/SearchRequest.php | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Classes/Domain/Index/TcaIndexer/PagesIndexer.php b/Classes/Domain/Index/TcaIndexer/PagesIndexer.php index 5c1bca4..c2464c6 100644 --- a/Classes/Domain/Index/TcaIndexer/PagesIndexer.php +++ b/Classes/Domain/Index/TcaIndexer/PagesIndexer.php @@ -26,19 +26,12 @@ use Codappix\SearchCore\Connection\ConnectionInterface; use Codappix\SearchCore\Domain\Index\TcaIndexer; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\RootlineUtility; -use TYPO3\CMS\Extbase\Object\ObjectManager; -use TYPO3\CMS\Extbase\Object\ObjectManagerInterface; /** * Specific indexer for Pages, will basically add content of page. */ class PagesIndexer extends TcaIndexer { - /** - * @var ObjectManagerInterface - */ - protected $objectManager; - /** * @var TcaTableServiceInterface */ @@ -54,12 +47,10 @@ class PagesIndexer extends TcaIndexer TcaTableServiceInterface $tcaTableService, TcaTableServiceInterface $contentTableService, ConnectionInterface $connection, - ConfigurationContainerInterface $configuration, - ObjectManagerInterface $objectManager + ConfigurationContainerInterface $configuration ) { parent::__construct($tcaTableService, $connection, $configuration); $this->contentTableService = $contentTableService; - $this->objectManager = $objectManager; } protected function prepareRecord(array &$record) diff --git a/Classes/Domain/Model/SearchRequest.php b/Classes/Domain/Model/SearchRequest.php index 32efb5d..29756d0 100644 --- a/Classes/Domain/Model/SearchRequest.php +++ b/Classes/Domain/Model/SearchRequest.php @@ -24,7 +24,6 @@ namespace Codappix\SearchCore\Domain\Model; use Codappix\SearchCore\Connection\ConnectionInterface; use Codappix\SearchCore\Connection\FacetRequestInterface; use Codappix\SearchCore\Connection\SearchRequestInterface; -use Codappix\SearchCore\Connection\SearchResultInterface; use Codappix\SearchCore\Domain\Search\SearchServiceInterface; use Codappix\SearchCore\Utility\ArrayUtility;