Index: temp_moodle_dev/moodle/mod/quiz/locallib.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/quiz/locallib.php,v diff -u -r1.1 -r1.2 --- temp_moodle_dev/moodle/mod/quiz/locallib.php 14 Nov 2008 06:30:10 -0000 1.1 +++ temp_moodle_dev/moodle/mod/quiz/locallib.php 28 Oct 2009 07:32:02 -0000 1.2 @@ -294,24 +294,6 @@ } /** - * Get the best current grade for a particular user in a quiz. - * - * @param object $quiz the quiz object. - * @param integer $userid the id of the user. - * @return float the user's current grade for this quiz. - */ -function quiz_get_best_grade($quiz, $userid) { - $grade = get_field('quiz_grades', 'grade', 'quiz', $quiz->id, 'userid', $userid); - - // Need to detect errors/no result, without catching 0 scores. - if (is_numeric($grade)) { - return round($grade, $quiz->decimalpoints); - } else { - return NULL; - } -} - -/** * Convert the raw grade stored in $attempt into a grade out of the maximum * grade for this quiz. *