* Remove useless function.

This commit is contained in:
qixinzhi
2023-11-14 14:37:44 +08:00
parent 3dc29bd6c8
commit e95ada9d53
-42
View File
@@ -439,48 +439,6 @@ class metricZen extends metric
$this->lang->metric->unitList['measure'] = $this->lang->custom->conceptOptions->hourPoint[$key];
}
/**
* 校验度量项。
* Verify calculator of metric.
*
* @param object $metric
* @access protected
* @return string
*/
protected function verifyCalc($metric)
{
$verifyResult = array();
$hasError = false;
foreach($this->config->metric->verifyList as $method => $tip)
{
$verifyItem = new stdclass();
$verifyItem->tip = $tip;
$verifyItem->result = $this->metric->$method($metric);
if(!$verifyItem->result) $hasError = true;
$verifyResult[] = $verifyItem;
if(!$verifyItem->result) break;
}
if(count($verifyResult) != 3) return array($hasError, $verifyResult);
$dryRunOutput = $this->metric->dryRunCalc($metric->code);
if(!empty($dtyRunOutput))
{
$dryRunResult = new stdclass();
$dryRunResult->tip = $dryRunOutput;
$dryRunResult->result = false;
$verifyResult[] = $dryRunResult;
$hasError = true;
}
return array($hasError, $verifyResult);
}
/**
* 构建操作权限。
* Prepare action priv.