From 11b98836b274bcb2199672ca558f8c462cbbf9e6 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 12 Aug 2011 16:36:17 +0200 Subject: [PATCH] Removed forgotten temporary code pieces by me --- .../lib/data/cronjob/CronjobEditor.class.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php index f68d8310e4..b976c213c4 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php @@ -4,7 +4,6 @@ use wcf\data\DatabaseObjectEditor; use wcf\data\IEditableCachedObject; use wcf\system\cache\CacheHandler; use wcf\system\WCF; -use wcf\system\util; /** * Provides functions to edit cronjobs. @@ -22,21 +21,6 @@ class CronjobEditor extends DatabaseObjectEditor implements IEditableCachedObjec */ protected static $baseClass = 'wcf\data\cronjob\Cronjob'; - /** - * @see wcf\data\DatabaseObjectEditor::create() - */ - public static function create(array $parameters = array()) { - // handle execution times - if (!isset($parameters['nextExec'])) { - $parameters['nextExec'] = TIME_NOW; - } - if (!isset($parameters['nextExec'])) { - $parameters['afterNextExec'] = CronjobUtil::calculateNextExec($parameters['startMinute'], $parameters['startHour'], $parameters['startDom'], $parameters['startMonth'], $parameters['startDow']); - } - - parent::create($parameters); - } - /** * @see wcf\data\IEditableCachedObject::resetCache() */ -- 2.20.1