1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-25 10:26:17 +02:00

Merge branch 'MDL-46294-master' of git://github.com/ankitagarwal/moodle

This commit is contained in:
Dan Poltawski 2015-06-03 08:53:19 +01:00
commit 21313019d9

@ -471,23 +471,10 @@ class completion_info {
}
/**
* 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.');
}
/**