diff --git a/mod/quiz/attemptlib.php b/mod/quiz/attemptlib.php index 5060db3472d..22819860871 100644 --- a/mod/quiz/attemptlib.php +++ b/mod/quiz/attemptlib.php @@ -1975,23 +1975,6 @@ class quiz_attempt { $event->trigger(); } - /** - * Print the fields of the comment form for questions in this attempt. - * @param $slot which question to output the fields for. - * @param $prefix Prefix to add to all field names. - */ - public function question_print_comment_fields($slot, $prefix) { - // Work out a nice title. - $student = get_record('user', 'id', $this->get_userid()); - $a = new object(); - $a->fullname = fullname($student, true); - $a->attempt = $this->get_attempt_number(); - - question_print_comment_fields($this->quba->get_question_attempt($slot), - $prefix, $this->get_display_options(true)->markdp, - get_string('gradingattempt', 'quiz_grading', $a)); - } - // Private methods ========================================================= /** diff --git a/mod/quiz/upgrade.txt b/mod/quiz/upgrade.txt index 2c395e86287..78bee87a9d0 100644 --- a/mod/quiz/upgrade.txt +++ b/mod/quiz/upgrade.txt @@ -1,5 +1,9 @@ This files describes API changes in the quiz code. +=== 3.1 === +* quiz_attempt::question_print_comment_fields() has been removed. It was broken + since at least Moodle 2.0. + === 2.9 === * There have been changes in classes/output/edit_renderer.php for MDL-40990.