Skip to content

Commit

Permalink
Merge pull request #272 from kbss-cvut/remove-unused-model-properties
Browse files Browse the repository at this point in the history
[Upd] Remove unused form model properties
  • Loading branch information
blcham committed Feb 20, 2024
2 parents a4c00af + 8ccd834 commit 92636ba
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/constants/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,8 @@ export default class Constants {
"http://onto.fel.cvut.cz/ontologies/form/negative-condition";
static REQUIRES_ANSWER =
"http://onto.fel.cvut.cz/ontologies/form/requires-answer";
static REQUIRES_ANSWER_DESCRIPTION_IF =
"http://onto.fel.cvut.cz/ontologies/form/requires-answer-description-if";
static REQUIRES_ANSWER_IF =
"http://onto.fel.cvut.cz/ontologies/form/requires-answer-if";
static REQUIRES_ANSWER_VALUE =
"http://onto.fel.cvut.cz/ontologies/form/requires-answer-value";
static REQUIRES_DESCRIPTION =
"http://onto.fel.cvut.cz/ontologies/form/requires-description";
static HAS_PRECEDING_QUESTION =
"http://onto.fel.cvut.cz/ontologies/form/has-preceding-question";
static HAS_PRECEDING_VALUE =
Expand Down
3 changes: 0 additions & 3 deletions src/util/FormUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ export default class FormUtils {
}

static hasValidationLogic(question) {
if (question[Constants.REQUIRES_ANSWER_VALUE]) {
return true;
}
if (question[Constants.REQUIRES_ANSWER]) {
return true;
}
Expand Down
3 changes: 0 additions & 3 deletions types/s-forms.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,7 @@ export class Constants {
static HAS_VALIDATION_MESSAGE: string;
static NEGATIVE_CONDITION: string;
static REQUIRES_ANSWER: string;
static REQUIRES_ANSWER_DESCRIPTION_IF: string;
static REQUIRES_ANSWER_IF: string;
static REQUIRES_ANSWER_VALUE: string;
static REQUIRES_DESCRIPTION: string;
static HAS_PRECEDING_QUESTION: string;
static HAS_PRECEDING_VALUE: string;
static HAS_MEDIA_CONTENT: string;
Expand Down

0 comments on commit 92636ba

Please sign in to comment.