remove constructions not in use

This commit is contained in:
yggverse 2024-11-13 12:59:11 +02:00
parent 84926a4e8c
commit a95832f5fc

View File

@ -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<Vec<Table>, Error> {
Ok(records)
}
pub fn delete(tx: &Transaction, id: i64) -> Result<usize, Error> {
tx.execute("DELETE FROM `profile` WHERE `id` = ?", [id])
}
pub fn last_insert_id(tx: &Transaction) -> i64 {
tx.last_insert_rowid()
}