diff --git a/application/controllers/QuestionAdministrationController.php b/application/controllers/QuestionAdministrationController.php index 7bda9d0e976..d2e8d07b496 100644 --- a/application/controllers/QuestionAdministrationController.php +++ b/application/controllers/QuestionAdministrationController.php @@ -607,39 +607,6 @@ public function actionGetGeneralOptions( } - /** - * Action (called by ajaxrequest and returning json) - * Returns a preformatted json of advanced settings. - * - * @param int $iQuestionId - * @param string $sQuestionType - * @param boolean $returnArray - * @param string $questionThemeName - * - * @return void|array - * @throws CException - * @todo Delete when Vue is gone? - */ - public function actionGetAdvancedOptions( - $iQuestionId = null, - $sQuestionType = null, - $returnArray = false, //todo see were this ajaxrequest is done and take out the parameter there and here - $questionThemeName = null - ) { - //here we get a Question object (also if question is new --> QuestionCreate) - // TODO: this object doesn't seem to be needed here. - $oQuestion = $this->getQuestionObject($iQuestionId, $sQuestionType, null, $questionThemeName); - $aAdvancedOptionsArray = $this->getAdvancedOptions($iQuestionId, $sQuestionType, $questionThemeName); - - $this->renderJSON( - [ - 'advancedSettings' => $aAdvancedOptionsArray, - 'questionTypeDefinition' => $oQuestion->questionType, - ] - ); - } - - /** * Collect initial question data * This either creates a temporary question object, or calls a question object from the database