MDL-65050 core: delete orphaned files and functions

This commit is contained in:
Simey Lameze 2019-03-28 16:38:49 +08:00
parent 9c164d26fc
commit d499cb3593
3 changed files with 4 additions and 131 deletions

View file

@ -408,21 +408,6 @@ abstract class question_bank {
return self::$fractionoptionsfull;
}
/**
* Perform scheduled maintenance tasks relating to the question bank.
*/
public static function cron() {
global $CFG;
// Delete any old question preview that got left in the database.
require_once($CFG->dirroot . '/question/previewlib.php');
question_preview_cron();
// Clear older calculated stats from cache.
require_once($CFG->dirroot . '/question/engine/statisticslib.php');
question_usage_statistics_cron();
}
/**
* Return a list of the different question types present in the given categories.
*