IcingaServiceForm: some cleanup

This commit is contained in:
Thomas Gelf 2022-02-06 12:28:18 +01:00
parent d615ce932c
commit c296b716de
1 changed files with 1 additions and 13 deletions

View File

@ -333,7 +333,7 @@ class IcingaServiceForm extends DirectorObjectForm
protected function setupServiceElements()
{
if ($this->object) {
$objectType = $this->object->object_type;
$objectType = $this->object->get('object_type');
} elseif ($this->preferredObjectType) {
$objectType = $this->preferredObjectType;
} else {
@ -422,10 +422,6 @@ class IcingaServiceForm extends DirectorObjectForm
$this->addHtmlHint($hint, ['name' => 'inheritance_hint']);
}
/**
* @throws IcingaException
* @throws ProgrammingError
*/
protected function setupOnHostForSet()
{
$msg = $this->translate(
@ -723,10 +719,6 @@ class IcingaServiceForm extends DirectorObjectForm
return $db->fetchPairs($select);
}
/**
* @throws IcingaException
* @throws ProgrammingError
*/
protected function succeedForOverrides()
{
$vars = array();
@ -759,10 +751,6 @@ class IcingaServiceForm extends DirectorObjectForm
$this->redirectOnSuccess($msg);
}
/**
* @throws IcingaException
* @throws ProgrammingError
*/
public function onSuccess()
{
if ($this->providesOverrides()) {