Skip to content
Snippets Groups Projects
Commit 2bf250a8 authored by mathias.chouet's avatar mathias.chouet
Browse files

Removed unused code

parent e45887da
No related branches found
No related tags found
1 merge request!49Resolve "Ajout du module de calcul d'une passe à bassins"
......@@ -333,20 +333,9 @@ export class FormulaireService extends Observable {
}
}
// add fieldsets for existing PabCloisons if needed
// (when loading session only)
if (f.currentNub instanceof Pab) {
for (const child of f.currentNub.children) {
for (const e of f.allFormElements) {
if (e instanceof FieldsetContainer) { // @TODO manage many containers one day ?
e.addFromTemplate(0, undefined, child);
}
}
}
}
// when creating a new Pab, add one wall with one device, plus the downwall
if (f instanceof FormulairePab) {
// (when loading session only)
if (f instanceof FormulairePab && f.currentNub instanceof Pab) {
// 1. one wall
const newWall = Session.getInstance().createNub(
new Props({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment