From: skodak Date: Mon, 18 Jun 2007 20:14:16 +0000 (+0000) Subject: MDL-9137 removing obsoleted function, finals now processed only by update_final_grade() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c2a897b0440d406a2c669ea168078729c043276a;p=moodle.git MDL-9137 removing obsoleted function, finals now processed only by update_final_grade() --- diff --git a/lib/grade/grade_item.php b/lib/grade/grade_item.php index d8d4984703..73b0011dcc 100644 --- a/lib/grade/grade_item.php +++ b/lib/grade/grade_item.php @@ -778,24 +778,6 @@ class grade_item extends grade_object { return fullclone($this->grade_grades_final); } - /** - * Returns an array of values (NOT objects) standardised from the final grades of this grade_item. They are indexed by userid. - * @return array integers - */ - function get_standardised_final() { - $standardised_finals = array(); - - $final_grades = $this->load_final(); - - if (!empty($final_grades)) { - foreach ($final_grades as $userid => $final) { - $standardised_finals[$userid] = standardise_score($final->gradevalue, $this->grademin, $this->grademax, 0, 1); - } - } - - return $standardised_finals; - } - /** * Returns the grade_category object this grade_item belongs to (if any). * This category object may be the parent (referenced by categoryid) or the associated category