Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nghyd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
Cassiopée
nghyd
Commits
06cc7ff0
Commit
06cc7ff0
authored
6 years ago
by
mathias.chouet
Browse files
Options
Downloads
Patches
Plain Diff
Suppression méthodes inutilisées liées à Props
parent
43f3956a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!31
Resolve "Simplification du code (jalhyd#58)"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/formulaire/definition/form-definition.ts
+0
-31
0 additions, 31 deletions
src/app/formulaire/definition/form-definition.ts
src/app/services/param/param.service.ts
+0
-4
0 additions, 4 deletions
src/app/services/param/param.service.ts
with
0 additions
and
35 deletions
src/app/formulaire/definition/form-definition.ts
+
0
−
31
View file @
06cc7ff0
...
...
@@ -100,27 +100,11 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs
this
.
_currentNub
=
n
;
}
private
findNub
(
params
:
Props
|
{})
{
return
this
.
_paramService
.
findNub
(
params
);
}
protected
createNub
(
params
:
Props
|
{}):
Nub
{
const
props
=
params
instanceof
Props
?
params
:
new
Props
(
params
);
return
this
.
_paramService
.
createNub
(
props
);
}
/**
* @return le Nub associé à un type de noeud donné, le crée si nécessaire
* @param params paramètres de contexte de création du nub
*/
protected
getNub
(
params
:
Props
|
{}):
Nub
{
let
res
=
this
.
findNub
(
params
);
if
(
!
res
)
{
res
=
this
.
createNub
(
params
);
}
return
res
;
}
protected
replaceCurrentNub
(
params
:
Props
)
{
this
.
currentNub
=
this
.
_paramService
.
replaceNub
(
this
.
_currentNub
,
params
);
}
...
...
@@ -129,21 +113,6 @@ export abstract class FormulaireDefinition extends FormulaireNode implements Obs
return
this
.
_paramService
.
replaceNub
(
sn
,
params
);
}
/**
* @return le paramètre d'un type de noeud
* @param symbol symbole du paramètre
* @param params paramètres de contexte de création du nub
*/
protected
getNubParamFromSymbol
(
symbol
:
string
,
params
:
Props
|
{}):
ParamDefinition
{
const
nub
:
Nub
=
this
.
getNub
(
params
);
if
(
nub
)
{
return
nub
.
getParameter
(
symbol
);
}
throw
new
Error
(
`FormulaireDefinition.getNubParamFromSymbol() : pas de Nub trouvé pour
${
params
}
`
);
}
protected
deleteNub
(
sn
:
Nub
)
{
this
.
_paramService
.
deleteNub
(
sn
);
}
...
...
This diff is collapsed.
Click to expand it.
src/app/services/param/param.service.ts
+
0
−
4
View file @
06cc7ff0
...
...
@@ -96,10 +96,6 @@ export class ParamService {
return
truc
;
}
public
findNub
(
params
:
Props
|
{}):
Nub
{
return
Session
.
getInstance
().
findNub
(
params
);
}
public
replaceNub
(
sn
:
Nub
,
params
:
Props
):
Nub
{
return
Session
.
getInstance
().
replaceNub
(
sn
,
params
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment