diff --git a/lib/completionlib.php b/lib/completionlib.php index 1f3dddc23eeae..262c1e811f028 100644 --- a/lib/completionlib.php +++ b/lib/completionlib.php @@ -471,23 +471,10 @@ public function get_aggregation_method($criteriatype = null) { } /** - * Get incomplete course completion criteria - * * @deprecated since Moodle 2.8 MDL-46290. - * @todo MDL-46294 This will be deleted in Moodle 3.0. - * @return array */ public function get_incomplete_criteria() { - debugging('completion_info->get_incomplete_criteria() is deprecated.', DEBUG_DEVELOPER); - $incomplete = array(); - - foreach ($this->get_criteria() as $criteria) { - if (!$criteria->is_complete()) { - $incomplete[] = $criteria; - } - } - - return $incomplete; + throw new coding_exception('completion_info->get_incomplete_criteria() is removed.'); } /**