From 843a556f6e547273439a3ea581353d5ee3d0fdc8 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Kempapura Srinivasa Date: Thu, 30 Apr 2020 15:58:10 +0200 Subject: [PATCH] Remove the unwanted comments in IcingaDbState Clean IcingaDbState class by removing the unwanted comments. --- .../Businessprocess/State/IcingaDbState.php | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/library/Businessprocess/State/IcingaDbState.php b/library/Businessprocess/State/IcingaDbState.php index af6929d..c87e561 100644 --- a/library/Businessprocess/State/IcingaDbState.php +++ b/library/Businessprocess/State/IcingaDbState.php @@ -62,28 +62,8 @@ class IcingaDbState extends IcingaDbBackend $queryHost->getSelectBase() ->where(['host.name IN (?)' => $hosts]); -// $resetHostCols = []; -// foreach ($columns as $column) { -// $tmpKey = str_replace('.', '_', $column); -// $resetHostCols[] = $tmpKey; -// } $this->applyMonitoringRestriction($queryHost); -// /** @var Host $host */ -// $hostList = $queryHost->assembleSelect(); -// $hostList = $backend->select($hostList)->fetchAll(); -// -// foreach ($hostList as $idx => $hst) { -// $hst = get_object_vars($hst); -// $hostColVals = array_values($hst); -// $hst = array_combine($resetHostCols, $hostColVals); -// $hostList[$idx] = $hst; -// if ($hst['host_state_state_type'] === 'hard') { -// $hostStateCol = 'host_state_hard_state'; -// } else { -// $hostStateCol = 'host_state_soft_state'; -// } -// } if ($this->config->usesHardStates()) { $stateCol = 'state.hard_state'; } else {