[TASK] Remove TSFE->getDocumentTemplate 83/52783/2
authorBenni Mack <benni@typo3.org>
Thu, 11 May 2017 15:43:56 +0000 (17:43 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 11 May 2017 17:00:27 +0000 (19:00 +0200)
Calling the protected method getDocumentTemplate() within TSFE
was added while cleaning up to be PHP-Storm-green in 2015, without
checking if this function is actually in use.

Resolves: #81199
Releases: master
Change-Id: I9a118c9cd20c9c00e836473d96132d8cb8898c7a
Reviewed-on: https://review.typo3.org/52783
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php

index d7ab355..11abfbc 100644 (file)
@@ -4532,14 +4532,4 @@ class TypoScriptFrontendController
     {
         return GeneralUtility::makeInstance(TimeTracker::class);
     }
-
-    /**
-     * Returns an instance of DocumentTemplate
-     *
-     * @return \TYPO3\CMS\Backend\Template\DocumentTemplate
-     */
-    protected function getDocumentTemplate()
-    {
-        return $GLOBALS['TBE_TEMPLATE'];
-    }
 }