ObjectController: remove legacy delete action

This commit is contained in:
Thomas Gelf 2016-02-17 19:25:40 +01:00
parent fa85bf071c
commit a58978099b
1 changed files with 0 additions and 21 deletions

View File

@ -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;