From 64046f35c3b0fb986150ec57b77c90173f0e2f3b Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 5 Oct 2024 15:34:46 +0300 Subject: [PATCH] disable constructions not in use --- src/app/browser/database.rs | 4 ++-- src/app/browser/widget/database.rs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/browser/database.rs b/src/app/browser/database.rs index 6d3bb0e7..5bacf634 100644 --- a/src/app/browser/database.rs +++ b/src/app/browser/database.rs @@ -3,7 +3,7 @@ use std::sync::Arc; pub struct Table { pub id: i64, - pub app_id: i64, + // pub app_id: i64, not in use } pub struct Database { @@ -37,7 +37,7 @@ impl Database { let result = statement.query_map([app_id], |row| { Ok(Table { id: row.get(0)?, - app_id: row.get(1)?, + // app_id: row.get(1)?, not in use }) })?; diff --git a/src/app/browser/widget/database.rs b/src/app/browser/widget/database.rs index f232e820..5365931c 100644 --- a/src/app/browser/widget/database.rs +++ b/src/app/browser/widget/database.rs @@ -3,7 +3,7 @@ use std::sync::Arc; pub struct Table { pub id: i64, - pub app_browser_id: i64, + // pub app_browser_id: i64, not in use pub default_width: i32, pub default_height: i32, pub is_maximized: bool, @@ -68,7 +68,7 @@ impl Database { let result = statement.query_map([app_browser_id], |row| { Ok(Table { id: row.get(0)?, - app_browser_id: row.get(1)?, + // app_browser_id: row.get(1)?, not in use default_width: row.get(2)?, default_height: row.get(3)?, is_maximized: row.get(4)?, @@ -90,7 +90,8 @@ impl Database { .execute("DELETE FROM `app_browser_widget` WHERE `id` = ?", [id]) } + /* not in use pub fn last_insert_id(&self) -> i64 { self.connection.last_insert_rowid() - } + } */ }