[icinga-checkins] icinga.org: icingaweb2-module-director/master: ObjectController: remove legacy delete action

git at icinga.org git at icinga.org
Wed Feb 17 19:35:50 CET 2016


Module: icingaweb2-module-director
Branch: master
Commit: a58978099bfebf1078281405ea798bb4abc778fc
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=a58978099bfebf1078281405ea798bb4abc778fc

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Feb 17 19:25:40 2016 +0100

ObjectController: remove legacy delete action

---

 .../Director/Web/Controller/ObjectController.php   |   21 --------------------
 1 file changed, 21 deletions(-)

diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php
index cf125d5..9752106 100644
--- a/library/Director/Web/Controller/ObjectController.php
+++ b/library/Director/Web/Controller/ObjectController.php
@@ -83,27 +83,6 @@ abstract class ObjectController extends ActionController
         $this->render('object/show', null, true);
     }
 
-    // TODO: Remove or leave here for API access only. Probably not needed.
-    public function deleteAction()
-    {
-        $type = $this->getType();
-        $this->getTabs()->activate('delete');
-
-        $this->view->form = $form = $this->loadForm(
-            'icingaDeleteObject'
-        )->setObject($this->object);
-
-        $url = Url::fromPath(sprintf('director/%ss', $type));
-        $form->setSuccessUrl($url);
-
-        $this->view->title = sprintf(
-            $this->translate('Delete Icinga %s'),
-            ucfirst($type)
-        );
-        $this->view->form->handleRequest();
-        $this->render('object/form', null, true);
-    }
-
     public function editAction()
     {
         $object = $this->object;



More information about the icinga-checkins mailing list