Comment unused code
This commit is contained in:
@@ -10,9 +10,17 @@ pub fn create_db() {
|
||||
connection.execute("PRAGMA foreign_keys = ON;", []).unwrap();
|
||||
|
||||
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) {
|
||||
make_card_set(conn).unwrap();
|
||||
make_settings(conn).unwrap();
|
||||
|
||||
+2
-2
@@ -200,9 +200,9 @@ impl SyncState {
|
||||
.into()
|
||||
}
|
||||
|
||||
fn app_updater(&self) -> Element<'_, SyncMessage> {
|
||||
/* fn app_updater(&self) -> Element<'_, SyncMessage> {
|
||||
column![].width(Fill).into()
|
||||
}
|
||||
}*/
|
||||
|
||||
fn prepare_to_db_interaction(&mut self) {
|
||||
if self.frozen {
|
||||
|
||||
Reference in New Issue
Block a user