Remove isExistingBackend/-Instance

It is more efficient to access configuration files only once instead of
accessing them multiple times in different locations.

refs #5525
This commit is contained in:
Johannes Meyer 2014-07-25 16:02:13 +02:00
parent d7ed6bd249
commit 5a738112ea
1 changed files with 0 additions and 26 deletions

View File

@ -242,30 +242,4 @@ class Monitoring_ConfigController extends ModuleActionController
return true;
}
/**
* Return whether the given backend exists in the current configuration
*
* @param string $backend The name of the backend to check
*
* @return bool Whether the backend exists or not
*/
protected function isExistingBackend($backend)
{
$backendCfg = $this->Config('backends');
return $backend && $backendCfg->get($backend);
}
/**
* Return whether the given instance exists in the current configuration
*
* @param string $instance The name of the instance to check
*
* @return bool Whether the instance exists or not
*/
protected function isExistingInstance($instance)
{
$instanceCfg = $this->Config('instances');
return $instanceCfg && $instanceCfg->get($instance);
}
}