From bc36bc597496d58e9cb8f0dc03193d29df14fd70 Mon Sep 17 00:00:00 2001
From: "mathias.chouet" <mathias.chouet@irstea.fr>
Date: Wed, 27 Mar 2019 09:30:01 +0100
Subject: [PATCH] =?UTF-8?q?Suppression=20code=20inutilis=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/app/formulaire/definition/form-compute.ts | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/app/formulaire/definition/form-compute.ts b/src/app/formulaire/definition/form-compute.ts
index 9a32be715..3e5683d6e 100644
--- a/src/app/formulaire/definition/form-compute.ts
+++ b/src/app/formulaire/definition/form-compute.ts
@@ -3,22 +3,12 @@ import { Nub, Result, ParamDomainValue, Observer } from "jalhyd";
 import { FormResult } from "./form-result";
 import { FormulaireDefinition } from "./form-definition";
 import { NgParameter } from "../ngparam";
-import { NotificationsService } from "../../services/notifications/notifications.service";
-import { ServiceFactory } from "../../services/service-factory";
-import { I18nService } from "../../services/internationalisation/internationalisation.service";
 
 export abstract class FormCompute implements Observer {
 
-    private notificationsService: NotificationsService;
-
-    private intlService: I18nService;
-
     constructor(protected _formBase: FormulaireDefinition, protected _formResult: FormResult) {
         // indirectly subscribe to Nub result updates
         this._formBase.addObserver(this);
-
-        this.notificationsService = ServiceFactory.instance.notificationsService;
-        this.intlService = ServiceFactory.instance.i18nService;
     }
 
     protected abstract compute();
@@ -117,11 +107,6 @@ export abstract class FormCompute implements Observer {
                 case "nubResultUpdated":
                     // forward Nub results update notification to FormCompute objects
                     this.reaffectResultComponents();
-                    // @TODO reenable later wen chain computation is executed only once or it is a snackbar hell !
-                    /* this.notificationsService.notify(
-                        this.intlService.localizeText("INFO_SNACKBAR_RESULTS_CALCULATED") + " " + this._formBase.calculatorName,
-                        1500
-                    ); */
                     break;
             }
         }
-- 
GitLab