From 6a3214a65825347084a59cf406e457390bcd57f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Schlosser?= Date: Fri, 13 Oct 2023 08:59:56 +0200 Subject: [PATCH] refactor: remove redundant cache functions --- .../Bootstrap/BootCompletedEventListener.php | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/Classes/Bootstrap/BootCompletedEventListener.php b/Classes/Bootstrap/BootCompletedEventListener.php index 3c78c0c..951a960 100644 --- a/Classes/Bootstrap/BootCompletedEventListener.php +++ b/Classes/Bootstrap/BootCompletedEventListener.php @@ -134,28 +134,4 @@ public function __invoke(BootCompletedEvent $event): void ); } } - - /** - * Returns the cache specified by $identifier - * - * @return FrontendInterface - * @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException - */ - protected function getCache(): FrontendInterface - { - return GeneralUtility::makeInstance(CacheManager::class) - ->getCache(ExtensionConfigurationUtility::CACHE_IDENTIFIER); - } - - /** - * Checks if the specified cache has been registered. - * - * @return FrontendInterface - * @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException - */ - protected function hasCache() - { - return GeneralUtility::makeInstance(CacheManager::class) - ->hasCache(ExtensionConfigurationUtility::CACHE_IDENTIFIER); - } }