From 4b733ac4ec5cbaedf2707648eb277e7d45c9284e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Gro=C3=9Fberndt?= <stephan@grossberndt.de> Date: Sat, 28 May 2016 18:42:40 +0200 Subject: [PATCH] [TASK] Remove unused functions in FormEngineUtility The functions getLanguageService() and getDatabaseConnection() in FormEngineUtility are not used and can be removed. Resolves: #76357 Releases: master Change-Id: I2883152c7ec3f40f80c280f360488a06b0ef9ba8 Reviewed-on: https://review.typo3.org/48369 Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Markus Klein <markus.klein@typo3.org> Tested-by: Markus Klein <markus.klein@typo3.org> --- .../Classes/Form/Utility/FormEngineUtility.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php b/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php index 7c5c215f67be..f63c7b1d0fef 100644 --- a/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php +++ b/typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php @@ -16,14 +16,12 @@ namespace TYPO3\CMS\Backend\Form\Utility; use TYPO3\CMS\Backend\Utility\BackendUtility; use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; -use TYPO3\CMS\Core\Database\DatabaseConnection; use TYPO3\CMS\Core\Imaging\Icon; use TYPO3\CMS\Core\Imaging\IconFactory; use TYPO3\CMS\Core\Utility\ArrayUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\PathUtility; use TYPO3\CMS\Core\Utility\StringUtility; -use TYPO3\CMS\Lang\LanguageService; /** * This is a static, internal and intermediate helper class for various @@ -221,22 +219,6 @@ class FormEngineUtility return $newRow; } - /** - * @return LanguageService - */ - protected static function getLanguageService() - { - return $GLOBALS['LANG']; - } - - /** - * @return DatabaseConnection - */ - protected static function getDatabaseConnection() - { - return $GLOBALS['TYPO3_DB']; - } - /** * @return BackendUserAuthentication */ -- GitLab