mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
BusinessProcess: drop locking code
This commit is contained in:
parent
8ef7bdbfb4
commit
945b14fd60
1 changed files with 3 additions and 18 deletions
|
|
@ -109,8 +109,6 @@ class BusinessProcess
|
|||
*/
|
||||
protected $simulation;
|
||||
|
||||
protected $locked = true;
|
||||
|
||||
protected $changeCount = 0;
|
||||
|
||||
protected $simulationCount = 0;
|
||||
|
|
@ -249,22 +247,6 @@ class BusinessProcess
|
|||
return false;
|
||||
}
|
||||
|
||||
public function isLocked()
|
||||
{
|
||||
return $this->locked;
|
||||
}
|
||||
|
||||
public function lock($lock = true)
|
||||
{
|
||||
$this->locked = (bool) $lock;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function unlock()
|
||||
{
|
||||
return $this->lock(false);
|
||||
}
|
||||
|
||||
public function hasSimulations()
|
||||
{
|
||||
return $this->countSimulations() > 0;
|
||||
|
|
@ -441,6 +423,9 @@ class BusinessProcess
|
|||
return count($this->root_nodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BpNode[]
|
||||
*/
|
||||
public function getRootNodes()
|
||||
{
|
||||
ksort($this->root_nodes);
|
||||
|
|
|
|||
Loading…
Reference in a new issue