From 10e66bbdad9365887c6056d0656ecd164266fa0d Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 24 Feb 2026 10:00:07 +0100 Subject: [PATCH] Removed unused functions --- application/models/Cq.php | 68 --------------------------------------- 1 file changed, 68 deletions(-) diff --git a/application/models/Cq.php b/application/models/Cq.php index de1772676..36c3243df 100644 --- a/application/models/Cq.php +++ b/application/models/Cq.php @@ -284,72 +284,4 @@ class CQ extends CI_Model{ return $query->result(); } - /* - * Function gets worked and confirmed summary on each band on the active stationprofile - * Now uses data from get_cq_array instead of separate queries - much more efficient! - */ - function get_cq_summary($bands, $postdata, $location_list) { - $result = $this->get_cq_array($bands, $postdata, $location_list); - - if ($result && isset($result['summary'])) { - return $result['summary']; - } - - // Fallback to empty structure if something went wrong - $cqSummary = []; - foreach ($bands as $band) { - $cqSummary['worked'][$band] = '-'; - $cqSummary['confirmed'][$band] = '-'; - } - $cqSummary['worked']['Total'] = '-'; - $cqSummary['confirmed']['Total'] = '-'; - - return $cqSummary; - } - - function getSummaryByBand($band, $postdata, $location_list, $bandslots) { - $bindings=[]; - $sql = "SELECT count(distinct thcv.col_cqz) as count FROM " . $this->config->item('table_name') . " thcv"; - - $sql .= " where station_id in (" . $location_list . ') and col_cqz <= 40 and col_cqz > 0'; - - if ($band == 'SAT') { - $sql .= " and thcv.col_prop_mode = ?"; - $bindings[]=$band; - } else if ($band == 'All') { - $this->load->model('bands'); - - // $bandslots = $this->bands->get_worked_bands('cq'); - - $bandslots_list = "'".implode("','",$bandslots)."'"; - - $sql .= " and thcv.col_band in (" . $bandslots_list . ")" . - " and thcv.col_prop_mode !='SAT'"; - } else { - $sql .= " and thcv.col_prop_mode !='SAT'"; - $sql .= " and thcv.col_band = ?"; - $bindings[]=$band; - } - - if ($postdata['mode'] != 'All') { - $sql .= " and (col_mode = ? or col_submode = ?)"; - $bindings[]=$postdata['mode']; - $bindings[]=$postdata['mode']; - } - - if ($postdata['datefrom'] != NULL) { - $sql .= " and col_time_on >= ?"; - $bindings[]=$postdata['datefrom'] . ' 00:00:00'; - } - - if ($postdata['dateto'] != NULL) { - $sql .= " and col_time_on <= ?"; - $bindings[]=$postdata['dateto'] . ' 23:59:59'; - } - - $query = $this->db->query($sql,$bindings); - - return $query->result(); - } - }