mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
Remove $backendName property from AddNodeForm and EditNodeForm
This commit is contained in:
parent
34626cbec5
commit
6c2e1cfa0a
3 changed files with 0 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Reference in a new issue