From 01e5ce8781b9161d792e20bf9f2dbaeed63173c0 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Fri, 4 May 2012 16:01:41 +0800 Subject: [PATCH] MDL-32782: Remove unused source file from assignment upgrade tool (lib.php) --- admin/tool/assignmentupgrade/lib.php | 59 ---------------------------- 1 file changed, 59 deletions(-) delete mode 100644 admin/tool/assignmentupgrade/lib.php diff --git a/admin/tool/assignmentupgrade/lib.php b/admin/tool/assignmentupgrade/lib.php deleted file mode 100644 index d5601fa4993..00000000000 --- a/admin/tool/assignmentupgrade/lib.php +++ /dev/null @@ -1,59 +0,0 @@ -. - -/** - * Lib functions (cron) to automatically complete the assignment module upgrade if it was not done all at once during the main upgrade. - * - * @package tool_assignmentupgrade - * @copyright 2012 NetSpot - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - -defined('MOODLE_INTERNAL') || die; - -/** - * Standard cron function - */ -function tool_assignmentupgrade_cron() { - $settings = get_config('tool_assignmentupgrade'); - if (empty($settings->cronenabled)) { - return; - } - - mtrace('assignmentupgrade: tool_assignmentupgrade_cron() started at '. date('H:i:s')); - try { - tool_assignmentupgrade_process($settings); - } catch (Exception $e) { - mtrace('assignmentupgrade: tool_assignmentupgrade_cron() failed with an exception:'); - mtrace($e->getMessage()); - } - mtrace('assignmentupgrade: tool_assignmentupgrade_cron() finished at ' . date('H:i:s')); -} - -/** - * This function does the cron process within the time range according to settings. - * This is not implemented yet - * @param stdClass $settings - not used - */ -function tool_assignmentupgrade_process($settings) { - global $CFG; - require_once(dirname(__FILE__) . '/locallib.php'); - - mtrace('assignmentupgrade: processing ...'); - - mtrace('assignmentupgrade: Done.'); - return; -}