From e8bee7ea180f3d0fea603dc1e20c04950e204949 Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Thu, 11 May 2017 17:43:56 +0200
Subject: [PATCH] [TASK] Remove TSFE->getDocumentTemplate

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>
---
 .../Controller/TypoScriptFrontendController.php        | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
index d7ab355a3e96..11abfbc3e748 100644
--- a/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
+++ b/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
@@ -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'];
-    }
 }
-- 
GitLab