Verified Commit eda64c01 authored by Romain De Laage De Bellefaye's avatar Romain De Laage De Bellefaye 🌳
Browse files

Uneeded calls

parent 7f67d8b6
Pipeline #79802 passed with stage
in 15 seconds
No preview for this file type
...@@ -196,10 +196,6 @@ RegleVoisinage* Database::getRegleVoisinage(const QString& name) const { ...@@ -196,10 +196,6 @@ RegleVoisinage* Database::getRegleVoisinage(const QString& name) const {
coord.y = query.value(1).toUInt(); coord.y = query.value(1).toUInt();
dynamic_cast<RegleVoisinageArbitraire*>(regle)->coordonnees.push_back(coord); dynamic_cast<RegleVoisinageArbitraire*>(regle)->coordonnees.push_back(coord);
} while(query.next()); } while(query.next());
query.prepare("SELECT COUNT(*) FROM coord_voisinage WHERE id = :id");
query.bindValue(":id", name);
query.exec();
} }
return regle; return regle;
...@@ -525,8 +521,6 @@ void Database::initSingletonAutomate(const QString& modele) const ...@@ -525,8 +521,6 @@ void Database::initSingletonAutomate(const QString& modele) const
Automate::getInstance().setFonction(Database::getFonction(Automate::getInstance())); Automate::getInstance().setFonction(Database::getFonction(Automate::getInstance()));
Automate::getInstance().setRegleVoisinage(Database::getRegleVoisinage(modele)); Automate::getInstance().setRegleVoisinage(Database::getRegleVoisinage(modele));
//Automate::getInstance().getEnsemble();
std::vector<QString> reseaux = Database::getListeReseaux(modele); std::vector<QString> reseaux = Database::getListeReseaux(modele);
Automate::getInstance().setReseauInit(Database::getReseau(reseaux[0].toInt())); Automate::getInstance().setReseauInit(Database::getReseau(reseaux[0].toInt()));
Automate::getInstance().initialiserBuffer(); Automate::getInstance().initialiserBuffer();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment