From ec2b2b14f0e2d56d6de671aa1df8c694837ea864 Mon Sep 17 00:00:00 2001 From: int2001 Date: Tue, 8 Aug 2023 13:51:05 +0000 Subject: [PATCH] Removed another unused (and potential dangerous) function --- application/models/Logbook_model.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 413e7ca4..0b6fe46b 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -2629,18 +2629,6 @@ class Logbook_model extends CI_Model { } } - function api_insert_query($query) { - $time_start = microtime(true); - $results = $this->db->insert($this->config->item('table_name'), $query); - if(!$results) { - return array('query' => $query, 'error' => $this->db->_error_number(), 'time' => 0); - } - $time_end = microtime(true); - $time = round($time_end - $time_start, 4); - - return array('query' => $this->db->queries[2], 'result_string' => $results, 'time' => $time); - } - /* Delete QSO based on the QSO ID */ function delete($id) { if ($this->check_qso_is_accessible($id)) {