From 195a30773c226d293d8f2d980a786c1b2785d2ba Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 29 Jun 2015 16:09:51 +0200 Subject: [PATCH] ObjectController: remove obsolete actions --- application/controllers/ObjectController.php | 40 -------------------- 1 file changed, 40 deletions(-) diff --git a/application/controllers/ObjectController.php b/application/controllers/ObjectController.php index ec1529e2..de81aa92 100644 --- a/application/controllers/ObjectController.php +++ b/application/controllers/ObjectController.php @@ -36,26 +36,6 @@ class Director_ObjectController extends ActionController $this->render('form'); } - public function hostvarAction() - { - $this->view->form = $this->loadForm('icingaHostVar') - ->setDb($this->db()) - ->setSuccessUrl('director/list/hostvars'); - - if (($host_id = $this->params->get('host_id')) - && ($varname = $this->params->get('varname'))) { - $this->view->form->loadObject(array( - 'host_id' => $host_id, - 'varname' => $varname, - )); - $this->view->title = $this->translate('Modify Icinga Host Variable'); - } else { - $this->view->title = $this->translate('Add new Icinga Host Variable'); - } - $this->view->form->handleRequest(); - $this->render('form'); - } - public function serviceAction() { $this->view->form = $this->loadForm('icingaService') @@ -88,26 +68,6 @@ class Director_ObjectController extends ActionController $this->render('form'); } - public function servicevarAction() - { - $this->view->form = $this->loadForm('icingaServiceVar') - ->setDb($this->db()) - ->setSuccessUrl('director/list/servicevars'); - - if (($host_id = $this->params->get('service_id')) - && ($varname = $this->params->get('varname'))) { - $this->view->form->loadObject(array( - 'service_id' => $host_id, - 'varname' => $varname, - )); - $this->view->title = $this->translate('Modify Icinga Service Variable'); - } else { - $this->view->title = $this->translate('Add new Icinga Service Variable'); - } - $this->view->form->handleRequest(); - $this->render('form'); - } - public function commandAction() { $this->view->form = $this->loadForm('icingaCommand')