Skip to content

Commit

Permalink
fix: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
hig-dev committed Feb 6, 2024
1 parent 4b15976 commit 0634d97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions core/lib/src/models/expressions/expression.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ abstract class Expression {

Expression(this.type);

bool get isSupported => true;

factory Expression.fromJson(Map<String, dynamic> data) => switch (data[keyType]) {
BooleanExpression.expressionType => BooleanExpression.fromJson(data),
ChoiceExpression.expressionType => ChoiceExpression.fromJson(data),
Expand Down
2 changes: 0 additions & 2 deletions core/lib/src/models/interventions/intervention_task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ abstract class InterventionTask extends Task {

InterventionTask.withId(super.type) : super.withId();

bool get isSupported => true;

factory InterventionTask.fromJson(Map<String, dynamic> data) => switch (data[Task.keyType]) {
CheckmarkTask.taskType => CheckmarkTask.fromJson(data),
_ => throw UnknownJsonTypeError(data[Task.keyType]),
Expand Down

0 comments on commit 0634d97

Please sign in to comment.