diff --git a/libraries/src/Exception/ExceptionHandler.php b/libraries/src/Exception/ExceptionHandler.php index ab96f5e7287ca..8833544aa4864 100644 --- a/libraries/src/Exception/ExceptionHandler.php +++ b/libraries/src/Exception/ExceptionHandler.php @@ -100,7 +100,7 @@ public static function render($error) ob_end_clean(); } - // This is needed to ensure the test suite can still get the output buffer + // This is needed to ensure the test suite can still get the output buffer ob_start(); $document->setTitle(Text::_('ERROR') . ': ' . $error->getCode()); @@ -171,21 +171,6 @@ public static function render($error) jexit(1); } - /** - * Returns name of function, that called current routine or false on failure. Current routine is - * routine, calling {@see getCallerMethod}. - * - * @return string|false - * - * @since 3.10.0 - */ - protected static function getCallerFunctionName() - { - $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); - - return isset($backtrace[2]['function']) ? $backtrace[2]['function'] : false; - } - /** * Checks if given error belong to PHP exception class (\Throwable for PHP 7+, \Exception for PHP 5-). *