[TASK] Remove unnecessary require_once statement 49/38049/3
authorBenjamin Mack <benni@typo3.org>
Mon, 23 Mar 2015 17:10:06 +0000 (18:10 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 23 Mar 2015 17:49:01 +0000 (18:49 +0100)
The DebugUtility has been required manually for
logDeprecatedFunction() calls before the new Bootstrap
and the new Class Loading mechanism were in place.

This code can now safely be removed.

Resolves: #65946
Releases: master
Change-Id: I55f473c33d457e12109f196e04b8a9046f7531f8
Reviewed-on: http://review.typo3.org/38049
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Utility/GeneralUtility.php

index 1b75134..d5c47e6 100755 (executable)
@@ -4993,13 +4993,6 @@ Connection: close
                if (!$GLOBALS['TYPO3_CONF_VARS']['SYS']['enableDeprecationLog']) {
                        return;
                }
-
-                       // This require_once is needed for deprecation calls
-                       // thrown early during bootstrap, if the autoloader is
-                       // not instantiated yet. This can happen for example if
-                       // ext_localconf triggers a deprecation.
-               require_once 'DebugUtility.php';
-
                $trail = debug_backtrace();
                if ($trail[1]['type']) {
                        $function = new \ReflectionMethod($trail[1]['class'], $trail[1]['function']);