Merge branch 'MDL-46294-master' of git://github.com/ankitagarwal/moodle
authorDan Poltawski <dan@moodle.com>
Wed, 3 Jun 2015 07:53:19 +0000 (08:53 +0100)
committerDan Poltawski <dan@moodle.com>
Wed, 3 Jun 2015 07:53:19 +0000 (08:53 +0100)
lib/completionlib.php

index 1f3dddc..262c1e8 100644 (file)
@@ -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.');
     }
 
     /**