From b62808e0c9c78124a9cdb7aac35d3b325f2dd7d7 Mon Sep 17 00:00:00 2001 From: kenjis Date: Sun, 8 Oct 2023 17:32:15 +0900 Subject: [PATCH] refactor: remove unused method The protected method is never called by caller. --- system/Autoloader/FileLocatorCached.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/system/Autoloader/FileLocatorCached.php b/system/Autoloader/FileLocatorCached.php index e89e7f7364ca..76423e89f768 100644 --- a/system/Autoloader/FileLocatorCached.php +++ b/system/Autoloader/FileLocatorCached.php @@ -90,20 +90,6 @@ public function deleteCache(): void $this->cacheHandler->delete($this->cacheKey); } - protected function getNamespaces() - { - if (isset($this->cache['getNamespaces'])) { - return $this->cache['getNamespaces']; - } - - $namespaces = $this->locator->getNamespaces(); - - $this->cache['getNamespaces'] = $namespaces; - $this->cacheUpdated = true; - - return $namespaces; - } - public function findQualifiedNameFromPath(string $path): false|string { if (isset($this->cache['findQualifiedNameFromPath'][$path])) {