[TASK] Remove duplicate IconFactory instantiation 75/56075/2
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Fri, 9 Mar 2018 12:00:15 +0000 (13:00 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 9 Mar 2018 12:58:11 +0000 (13:58 +0100)
Remove duplicate IconFactory instantiation within PageLayoutView

Releases: master
Resolves: #84186
Change-Id: I2fded29170ded49901c02ae4cdb0bcf056dce591
Reviewed-on: https://review.typo3.org/56075
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 7286a90..f203ff3 100644 (file)
@@ -633,7 +633,6 @@ class PageLayoutView implements LoggerAwareInterface
         $this->getTranslateTools();
         $this->determineScriptUrl();
         $this->localizationController = GeneralUtility::makeInstance(LocalizationController::class);
-        $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
         $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
         $pageRenderer->addInlineLanguageLabelFile('EXT:backend/Resources/Private/Language/locallang_layout.xlf');
         $pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/Tooltip');