Skip to content

Commit

Permalink
chore(decorators): remove dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Selman <[email protected]>
  • Loading branch information
dselman committed Oct 2, 2024
1 parent a5044ac commit 05f7a4a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/concerto-core/lib/basemodelmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ class BaseModelManager {
this.strict = !!options?.strict;
this.options = options;
this.addRootModel();
this.decorators = undefined;
this.decoratorValidation = options?.decoratorValidation ? options?.decoratorValidation : DEFAULT_DECORATOR_VALIDATION;

// TODO Remove on release of MapType
Expand Down Expand Up @@ -356,7 +355,6 @@ class BaseModelManager {
if (!this.modelFiles[namespace]) {
throw new Error('Model file does not exist');
} else {
this.decorators = undefined;
delete this.modelFiles[namespace];
}
}
Expand Down Expand Up @@ -420,8 +418,6 @@ class BaseModelManager {
* Validates all models files in this model manager
*/
validateModelFiles() {
// clear the decorators, because the model files may have changed
this.decorators = undefined;
for (let ns in this.modelFiles) {
this.modelFiles[ns].validate();
}
Expand Down

0 comments on commit 05f7a4a

Please sign in to comment.