Skip to content
Snippets Groups Projects
Commit 94333459 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Remove unnecessary code

parent 1d297039
No related branches found
No related tags found
1 merge request!11Feature security update
...@@ -48,27 +48,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface { ...@@ -48,27 +48,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
*/ */
private $registerArray = []; private $registerArray = [];
/**
* contains the paths to the registration files
*
* @var array
*/
private $registrationFiles = [];
/**
* Enables extensions to add their registration files
*
* @param string $pathToRegisterFile
* @api
*/
public function register($pathToRegisterFile) {
if (\file_exists($pathToRegisterFile)) {
$this->registrationFiles[] = [
'path' => $pathToRegisterFile
];
}
}
/** /**
* Get all registered templates from the cache * Get all registered templates from the cache
* *
...@@ -80,7 +59,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface { ...@@ -80,7 +59,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
public function getRegisterArray(): array { public function getRegisterArray(): array {
$cacheManager = GeneralUtility::makeInstance(CacheManager::class); $cacheManager = GeneralUtility::makeInstance(CacheManager::class);
$cache = $cacheManager->getCache(self::CACHE_NAME); $cache = $cacheManager->getCache(self::CACHE_NAME);
$cacheId = \md5('sg_mail'); $cacheId = 'sg_mail';
$entry = $cache->get($cacheId); $entry = $cache->get($cacheId);
if (!$entry) { if (!$entry) {
...@@ -223,16 +202,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface { ...@@ -223,16 +202,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
]; ];
} }
/**
* Get an array with a list of filepaths of all registration files
*
* @api
* @return array
*/
public function getRegistrationFiles(): array {
return $this->registrationFiles;
}
/** /**
* Returns the path to the configured location where automatic mail template registrations should be * Returns the path to the configured location where automatic mail template registrations should be
* *
......
...@@ -139,7 +139,6 @@ class FormEditorController extends \TYPO3\CMS\Form\Controller\FormEditorControll ...@@ -139,7 +139,6 @@ class FormEditorController extends \TYPO3\CMS\Form\Controller\FormEditorControll
// call register function in register service class // call register function in register service class
$registrationService->getRegisterArray(); $registrationService->getRegisterArray();
$this->clearCaches(); $this->clearCaches();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment