Skip to content

Commit

Permalink
Merge branch 'MDL-46294-master' of git://github.com/ankitagarwal/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jun 3, 2015
2 parents 1df669e + 28ac49c commit 2131301
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions lib/completionlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

/**
Expand Down

0 comments on commit 2131301

Please sign in to comment.