From a95832f5fc459a0a0b15290b9b4a91826f3b7c29 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 13 Nov 2024 12:59:11 +0200 Subject: [PATCH] remove constructions not in use --- src/profile/database.rs | 5 ----- 1 file changed, 5 deletions(-) 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() }