Comment unused code

This commit is contained in:
2026-06-15 18:49:00 +03:00
parent 29b1711283
commit be60b170eb
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -10,9 +10,17 @@ pub fn create_db() {
connection.execute("PRAGMA foreign_keys = ON;", []).unwrap(); connection.execute("PRAGMA foreign_keys = ON;", []).unwrap();
create_tables(&connection); create_tables(&connection);
}else {
let connection = Connection::open(&db_file).unwrap();
ensure_db_schema(&connection);
} }
} }
fn ensure_db_schema(conn: &Connection) {
}
fn create_tables(conn: &Connection) { fn create_tables(conn: &Connection) {
make_card_set(conn).unwrap(); make_card_set(conn).unwrap();
make_settings(conn).unwrap(); make_settings(conn).unwrap();
+2 -2
View File
@@ -200,9 +200,9 @@ impl SyncState {
.into() .into()
} }
fn app_updater(&self) -> Element<'_, SyncMessage> { /* fn app_updater(&self) -> Element<'_, SyncMessage> {
column![].width(Fill).into() column![].width(Fill).into()
} }*/
fn prepare_to_db_interaction(&mut self) { fn prepare_to_db_interaction(&mut self) {
if self.frozen { if self.frozen {