TASK: Remove unused code

E.g. use statement and injected object manager.
This commit is contained in:
Daniel Siepmann 2018-12-30 14:01:10 +01:00
parent 7f2249e3ff
commit 09cbaede29
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 1 additions and 11 deletions

View file

@ -26,19 +26,12 @@ use Codappix\SearchCore\Connection\ConnectionInterface;
use Codappix\SearchCore\Domain\Index\TcaIndexer; use Codappix\SearchCore\Domain\Index\TcaIndexer;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\RootlineUtility; 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. * Specific indexer for Pages, will basically add content of page.
*/ */
class PagesIndexer extends TcaIndexer class PagesIndexer extends TcaIndexer
{ {
/**
* @var ObjectManagerInterface
*/
protected $objectManager;
/** /**
* @var TcaTableServiceInterface * @var TcaTableServiceInterface
*/ */
@ -54,12 +47,10 @@ class PagesIndexer extends TcaIndexer
TcaTableServiceInterface $tcaTableService, TcaTableServiceInterface $tcaTableService,
TcaTableServiceInterface $contentTableService, TcaTableServiceInterface $contentTableService,
ConnectionInterface $connection, ConnectionInterface $connection,
ConfigurationContainerInterface $configuration, ConfigurationContainerInterface $configuration
ObjectManagerInterface $objectManager
) { ) {
parent::__construct($tcaTableService, $connection, $configuration); parent::__construct($tcaTableService, $connection, $configuration);
$this->contentTableService = $contentTableService; $this->contentTableService = $contentTableService;
$this->objectManager = $objectManager;
} }
protected function prepareRecord(array &$record) protected function prepareRecord(array &$record)

View file

@ -24,7 +24,6 @@ namespace Codappix\SearchCore\Domain\Model;
use Codappix\SearchCore\Connection\ConnectionInterface; use Codappix\SearchCore\Connection\ConnectionInterface;
use Codappix\SearchCore\Connection\FacetRequestInterface; use Codappix\SearchCore\Connection\FacetRequestInterface;
use Codappix\SearchCore\Connection\SearchRequestInterface; use Codappix\SearchCore\Connection\SearchRequestInterface;
use Codappix\SearchCore\Connection\SearchResultInterface;
use Codappix\SearchCore\Domain\Search\SearchServiceInterface; use Codappix\SearchCore\Domain\Search\SearchServiceInterface;
use Codappix\SearchCore\Utility\ArrayUtility; use Codappix\SearchCore\Utility\ArrayUtility;