Commit b3a3deda authored by Mathias Chouet's avatar Mathias Chouet :spaghetti:
Browse files

Suppression méthodes inutilisées liées à Props

Showing with 1 addition and 29 deletions
+1 -29
......@@ -34,7 +34,6 @@ export enum ComputeNodeType {
/**
* noeud de calcul
*/
// tslint:disable-next-line:max-classes-per-file
export abstract class ComputeNode extends JalhydObject implements IDebug {
protected _prms: ParamsEquation;
......
// import { XOR, BoolIdentity, Debug, Result, ResultCode, UndefinedError } from "./base";
import { BoolIdentity, Debug, XOR } from "./base";
import { BoolIdentity, Debug } from "./base";
import { Nub } from "./nub";
import { ParamDefinition } from "./param/param-definition";
import { ParamDomain, ParamDomainValue } from "./param/param-domain";
......
......@@ -36,10 +36,6 @@ export abstract class Nub extends ComputeNode implements IReferencedNub {
this._props = params.clone();
}
public hasProperties(p: Props | {}): boolean {
return this._props.hasProperties(p);
}
/**
* Formule utilisée pour le calcul analytique (solution directe ou méthode de résolution spécifique)
*/
......
......@@ -12,19 +12,6 @@ export class Props implements IObservable {
this._observable = new Observable();
}
public hasProperties(props: Props | {}): boolean {
const keys = Object.keys(this._props);
const p = props instanceof Props ? props._props : props;
for (const k of keys) {
if (this._props[k] !== p[k]) {
return false;
}
}
return true;
}
public getPropValue(key: string): any {
return this._props[key];
}
......
......@@ -56,15 +56,6 @@ export class Session {
return res;
}
public findNub(params: Props | {}): Nub {
for (const n of this._nubs) {
if (n.hasProperties(params)) {
return n;
}
}
return undefined;
}
/**
* remplace un Nub par un nouveau dans la session
* @param sn Nub à remplacer
......
Supports Markdown
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