diff --git a/application/forms/AddNodeForm.php b/application/forms/AddNodeForm.php index 063914c..d2a0b56 100644 --- a/application/forms/AddNodeForm.php +++ b/application/forms/AddNodeForm.php @@ -37,9 +37,6 @@ class AddNodeForm extends QuickForm /** @var SessionNamespace */ protected $session; - /** @var string $backendName */ - protected $backendName; - public function setup() { $view = $this->getView(); @@ -430,7 +427,6 @@ class AddNodeForm extends QuickForm public function setProcess(BpConfig $process) { $this->bp = $process; - $this->backendName = $process->getBackendName(); $this->setBackend($process->getBackend()); return $this; } diff --git a/application/forms/EditNodeForm.php b/application/forms/EditNodeForm.php index 6f47ba9..b313343 100644 --- a/application/forms/EditNodeForm.php +++ b/application/forms/EditNodeForm.php @@ -20,9 +20,6 @@ class EditNodeForm extends QuickForm /** @var MonitoringBackend|IcingaDbConnection */ protected $backend; - /** @var string $backendName */ - protected $backendName; - /** @var BpConfig */ protected $bp; @@ -315,7 +312,6 @@ class EditNodeForm extends QuickForm public function setProcess(BpConfig $process) { $this->bp = $process; - $this->backendName = $process->getBackendName(); $this->setBackend($process->getBackend()); return $this; } diff --git a/library/Businessprocess/State/IcingaDbState.php b/library/Businessprocess/State/IcingaDbState.php index 34d6667..f33d4a4 100644 --- a/library/Businessprocess/State/IcingaDbState.php +++ b/library/Businessprocess/State/IcingaDbState.php @@ -7,7 +7,6 @@ use Icinga\Application\Benchmark; use Icinga\Module\Businessprocess\BpConfig; use Icinga\Module\Businessprocess\IcingaDbObject; use Icinga\Module\Businessprocess\ServiceNode; -use Icinga\Module\Icingadb\Common\Auth; use Icinga\Module\Icingadb\Model\Host; use Icinga\Module\Icingadb\Model\Service; use ipl\Sql\Connection as IcingaDbConnection; @@ -15,8 +14,6 @@ use ipl\Stdlib\Filter; class IcingaDbState { - use Auth; - /** @var BpConfig */ protected $config; @@ -72,8 +69,6 @@ class IcingaDbState $hostObject = $queryHost->getModel()->getTableName(); - IcingaDbObject::applyIcingaDbRestrictions($queryHost); - Benchmark::measure('Retrieved states for ' . $queryHost->count() . ' hosts in ' . $config->getName()); $queryService = Service::on($this->backend)->with([