diff --git a/src/profile/database.rs b/src/profile/database.rs index 421d6f15..05b52a0e 100644 --- a/src/profile/database.rs +++ b/src/profile/database.rs @@ -2,7 +2,6 @@ use gtk::glib::DateTime; use sqlite::{Connection, Error, Transaction}; use std::{rc::Rc, sync::RwLock}; -#[derive(Debug)] pub struct Table { pub id: i64, pub is_active: bool, @@ -167,10 +166,6 @@ pub fn select(tx: &Transaction) -> Result, Error> { Ok(records) } -pub fn delete(tx: &Transaction, id: i64) -> Result { - tx.execute("DELETE FROM `profile` WHERE `id` = ?", [id]) -} - pub fn last_insert_id(tx: &Transaction) -> i64 { tx.last_insert_rowid() }