From fbb377e7ec38a5ca39fb7d5d7bb70bb2bd38bce7 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 7 Feb 2024 17:38:57 +0000 Subject: [PATCH] Rmoeve more unused leftovers from 1.0 to 2.0. --- application/models/Api_model.php | 13 ------------- application/models/Note.php | 14 -------------- application/models/Stations.php | 20 -------------------- 3 files changed, 47 deletions(-) diff --git a/application/models/Api_model.php b/application/models/Api_model.php index 45931e564..1677ab9e7 100644 --- a/application/models/Api_model.php +++ b/application/models/Api_model.php @@ -20,19 +20,6 @@ class API_Model extends CI_Model { return $query->num_rows(); } - function ClaimAllAPIKeys($id = NULL) { - // if $id is empty then use session user_id - if (empty($id)) { - // Get the first USER ID from user table in the database - $id = $this->db->get("users")->row()->user_id; - } - - $data = array( - 'user_id' => $id, - ); - - $this->db->update('api', $data); - } function key_description($key) { $this->db->where('user_id', $this->session->userdata('user_id')); diff --git a/application/models/Note.php b/application/models/Note.php index 8f4a05fe1..95c11d7f3 100644 --- a/application/models/Note.php +++ b/application/models/Note.php @@ -52,20 +52,6 @@ class Note extends CI_Model { return $this->db->get('notes'); } - function ClaimAllNotes($id = NULL) { - // if $id is empty then use session user_id - if (empty($id)) { - // Get the first USER ID from user table in the database - $id = $this->db->get("users")->row()->user_id; - } - - $data = array( - 'user_id' => $id, - ); - - $this->db->update('notes', $data); - } - function CountAllNotes() { // count all notes $this->db->where('user_id =', NULL); diff --git a/application/models/Stations.php b/application/models/Stations.php index d78f9c5b4..abeb74eb5 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -193,26 +193,6 @@ class Stations extends CI_Model { $this->db->delete($this->config->item('table_name')); } - function ClaimAllStationLocations($id = NULL) { - // if $id is empty then use session user_id - if (empty($id)) { - // Get the first USER ID from user table in the database - $id = $this->db->get("users")->row()->user_id; - } - - $data = array( - 'user_id' => $id, - ); - - $this->db->update('station_profile', $data); - } - - function CountAllStationLocations() { - $this->db->where('user_id =', NULL); - $query = $this->db->get('station_profile'); - return $query->num_rows(); - } - function set_active($current, $new) { // Clean inputs $clean_current = $this->security->xss_clean($current);