MDL-52471 quiz: remove broken code question_print_comment_fields()

This commit is contained in:
Dan Poltawski 2015-12-10 14:18:11 +00:00
parent 9708ff95fd
commit 8440c780bd
2 changed files with 4 additions and 17 deletions

View File

@ -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 =========================================================
/**

View File

@ -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.