Comment unused code
This commit is contained in:
@@ -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
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user