Skip to content

Commit 05f7a4a

Browse files
committed
chore(decorators): remove dead code
Signed-off-by: Dan Selman <danscode@selman.org>
1 parent a5044ac commit 05f7a4a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/concerto-core/lib/basemodelmanager.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ class BaseModelManager {
103103
this.strict = !!options?.strict;
104104
this.options = options;
105105
this.addRootModel();
106-
this.decorators = undefined;
107106
this.decoratorValidation = options?.decoratorValidation ? options?.decoratorValidation : DEFAULT_DECORATOR_VALIDATION;
108107

109108
// TODO Remove on release of MapType
@@ -356,7 +355,6 @@ class BaseModelManager {
356355
if (!this.modelFiles[namespace]) {
357356
throw new Error('Model file does not exist');
358357
} else {
359-
this.decorators = undefined;
360358
delete this.modelFiles[namespace];
361359
}
362360
}
@@ -420,8 +418,6 @@ class BaseModelManager {
420418
* Validates all models files in this model manager
421419
*/
422420
validateModelFiles() {
423-
// clear the decorators, because the model files may have changed
424-
this.decorators = undefined;
425421
for (let ns in this.modelFiles) {
426422
this.modelFiles[ns].validate();
427423
}

0 commit comments

Comments
 (0)