[TASK] Remove unused functions in FormEngineUtility 69/48369/2
authorStephan Großberndt <stephan@grossberndt.de>
Sat, 28 May 2016 16:42:40 +0000 (18:42 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 28 May 2016 17:04:52 +0000 (19:04 +0200)
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>
typo3/sysext/backend/Classes/Form/Utility/FormEngineUtility.php

index 7c5c215..f63c7b1 100644 (file)
@@ -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
@@ -222,22 +220,6 @@ class FormEngineUtility
     }
 
     /**
-     * @return LanguageService
-     */
-    protected static function getLanguageService()
-    {
-        return $GLOBALS['LANG'];
-    }
-
-    /**
-     * @return DatabaseConnection
-     */
-    protected static function getDatabaseConnection()
-    {
-        return $GLOBALS['TYPO3_DB'];
-    }
-
-    /**
      * @return BackendUserAuthentication
      */
     protected static function getBackendUserAuthentication()