From 9bb600c13bbc8c260ffd81c1c3c479280d0e6828 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 6 Feb 2022 15:32:48 +0100 Subject: [PATCH] ServiceController: drop obsolete method --- application/controllers/ServiceController.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index 2c2e7114..a3ea3962 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -93,23 +93,6 @@ class ServiceController extends ObjectController return $this->loadSpecificObject($table, $uuid); } - /** - * TODO: Is this still a thing? It's unused. - * - * @throws \Icinga\Exception\NotFoundError - */ - protected function loadOptionalApplyRule() - { - if ($apply = $this->params->get('apply')) { - // Hint: doesn't work, DbObjectStore::load does no longer exist - $store = new DbObjectStore($this->db(), $this->getBranch()); - $this->apply = $store->load('service', [ - 'object_name' => $apply, - 'object_type' => 'template' - ]); - } - } - protected function addParamToTabs($name, $value) { foreach ($this->tabs()->getTabs() as $tab) {