1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-10 10:40:54 +00:00

removed dead code.

This commit is contained in:
lgtst 2023-03-24 13:23:50 +00:00
parent bff887b793
commit 5f32881be2

View File

@ -1019,10 +1019,6 @@ export class Survey extends VisualStim
this._surveyModel.onTextMarkdown.add(this._onTextMarkdown.bind(this));
this._surveyModel.isInitialized = true;
this._surveyModel.onAfterRenderQuestion.add(this._handleAfterQuestionRender.bind(this));
this._surveyModel.onQuestionRemoved.add(() =>
{
console.log("question removed")
})
}
const completeText = surveyIdx < this._surveyData.surveys.length - 1 ? (this._surveyModel.pageNextText || Survey.CAPTIONS.NEXT) : undefined;
@ -1143,18 +1139,6 @@ export class Survey extends VisualStim
this._lastPageSwitchHandledIdx = -1;
}
_getQuestionByNameIncludingInDesign(questionName = "")
{
const allQuestions = this._surveyModel.getAllQuestions(false, true);
for (const question of allQuestions)
{
if (question.name === questionName)
{
return question;
}
}
}
_handleWindowResize(e)
{
if (this._surveyModel)