From 6c02d9c09a06fff84d15246bf295d6a824e76ffd Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 13 Aug 2017 20:51:13 +0200 Subject: [PATCH] PrefetchCache: remove now obsolete code --- library/Director/Db/Cache/PrefetchCache.php | 22 --------------------- 1 file changed, 22 deletions(-) diff --git a/library/Director/Db/Cache/PrefetchCache.php b/library/Director/Db/Cache/PrefetchCache.php index 44a1ea6e..eddd1091 100644 --- a/library/Director/Db/Cache/PrefetchCache.php +++ b/library/Director/Db/Cache/PrefetchCache.php @@ -6,7 +6,6 @@ use Icinga\Exception\ProgrammingError; use Icinga\Module\Director\CustomVariable\CustomVariable; use Icinga\Module\Director\Db; use Icinga\Module\Director\Objects\IcingaObject; -use Icinga\Module\Director\Objects\IcingaTemplateResolver; use Icinga\Module\Director\Resolver\TemplateTree; /** @@ -76,16 +75,6 @@ class PrefetchCache return $this->groupsCache($object)->getGroupsForObject($object); } - public function imports(IcingaObject $object) - { - return $this->templateResolver($object)->setObject($object)->fetchParents(); - } - - public function listImportNames(IcingaObject $object) - { - return $this->templateTree($object)->listParentNamesForObject($object); - } - /* Hint: not implemented, this happens in DbObject right now public function byObjectType($type) { @@ -122,17 +111,6 @@ class PrefetchCache return $this->varsCaches[$key]; } - protected function templateResolver(IcingaObject $object) - { - $key = $object->getShortTableName(); - - if (! array_key_exists($key, $this->templateResolvers)) { - $this->templateResolvers[$key] = new IcingaTemplateResolver($object); - } - - return $this->templateResolvers[$key]; - } - protected function groupsCache(IcingaObject $object) { $key = $object->getShortTableName();