Skip to content

Commit

Permalink
MDL-65050 core: delete orphaned files and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed Apr 1, 2019
1 parent 9c164d2 commit d499cb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 131 deletions.
15 changes: 0 additions & 15 deletions question/engine/bank.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,21 +408,6 @@ public static function fraction_options_full() {
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.
*
Expand Down
116 changes: 0 additions & 116 deletions question/tests/previewlib_test.php

This file was deleted.

4 changes: 4 additions & 0 deletions question/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ The exportprocess function of the qformat_default class doesn't output a blank l
if the result of the writequestion function is null. This permit to qformat plugins
to ignore some questions without the need to overwrite this function.

* The question_preview_cron() has been deleted. Please use \core\task\question_cron_task::execute().
* The question_usage_statistics_cron() has been deleted. Please use \core\task\question_cron_task::execute().
* The method question_bank::cron() has been deleted, please use question related scheduled tasks.

=== 3.5 ===

1) The question format exportprocess function now adds a
Expand Down

0 comments on commit d499cb3

Please sign in to comment.