Removed forgotten temporary code pieces by me
authorMatthias Schmidt <gravatronics@live.com>
Fri, 12 Aug 2011 14:36:17 +0000 (16:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 12 Aug 2011 14:36:17 +0000 (16:36 +0200)
wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php

index f68d8310e40a509012d05c6c65ef749c7b404d9f..b976c213c4648d818ec77eb3d4002a25cf3dee87 100644 (file)
@@ -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()
         */