MDL-35773 core_backup: removed introduction of 'set_mode'

This commit is contained in:
Mark Nelson
2019-07-26 11:59:56 +08:00
parent 94c71056a3
commit 8e83e54815
2 changed files with 0 additions and 15 deletions
@@ -185,20 +185,6 @@ class backup_controller extends base_controller {
backup_check::check_security($this, false);
}
/**
* Sets the mode (purpose) of the backup.
*
* @param int $mode The mode to set.
*/
public function set_mode($mode) {
$this->mode = $mode;
$this->set_include_files(); // Need to check if files are included as mode may have changed.
$this->save_controller();
$tbc = self::load_controller($this->backupid);
$this->logger = $tbc->logger; // Wakeup loggers.
$tbc->plan->destroy(); // Clean plan controller structures, keeping logger alive.
}
public function set_status($status) {
// Note: never save_controller() with the object info after STATUS_EXECUTING or the whole controller,
// containing all the steps will be sent to DB. 100% (monster) useless.