From: Matthias Schmidt Date: Fri, 12 Aug 2011 14:36:17 +0000 (+0200) Subject: Removed forgotten temporary code pieces by me X-Git-Tag: 2.0.0_Beta_1~1882^2~2^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=11b98836b274bcb2199672ca558f8c462cbbf9e6;p=GitHub%2FWoltLab%2FWCF.git Removed forgotten temporary code pieces by me --- 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() */