diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-29 14:26:55 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-29 14:27:12 +0200 |
commit | d5159423cdce68e669825bb6199ddba8ecc440a4 (patch) | |
tree | 8273ed6b91940e9c7029ca2e9f72b2abcabce08f /lib/public/BackgroundJob.php | |
parent | e48fa1c3370632b5f8a2dcdeeabda217f50b3539 (diff) | |
download | nextcloud-server-d5159423cdce68e669825bb6199ddba8ecc440a4.tar.gz nextcloud-server-d5159423cdce68e669825bb6199ddba8ecc440a4.zip |
Removed depreacted functions (since 6.0)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/BackgroundJob.php')
-rw-r--r-- | lib/public/BackgroundJob.php | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/lib/public/BackgroundJob.php b/lib/public/BackgroundJob.php index b49dd922786..43f445362dc 100644 --- a/lib/public/BackgroundJob.php +++ b/lib/public/BackgroundJob.php @@ -90,96 +90,4 @@ class BackgroundJob { $jobList = \OC::$server->getJobList(); $jobList->add($job, $argument); } - - /** - * @deprecated 6.0.0 - * creates a regular task - * @param string $klass class name - * @param string $method method name - * @return boolean|null - * @since 4.5.0 - */ - public static function addRegularTask($klass, $method) { - if (!\OCP\Util::needUpgrade()) { - self::registerJob('OC\BackgroundJob\Legacy\RegularJob', array($klass, $method)); - return true; - } - } - - /** - * @deprecated 6.0.0 - * gets all regular tasks - * @return array - * - * key is string "$klass-$method", value is array( $klass, $method ) - * @since 4.5.0 - */ - static public function allRegularTasks() { - return []; - } - - /** - * @deprecated 6.0.0 - * Gets one queued task - * @param int $id ID of the task - * @return BackgroundJob\IJob|null - * @since 4.5.0 - */ - public static function findQueuedTask($id) { - $jobList = \OC::$server->getJobList(); - return $jobList->getById($id); - } - - /** - * @deprecated 6.0.0 - * Gets all queued tasks - * @return array an array of associative arrays - * @since 4.5.0 - */ - public static function allQueuedTasks() { - return []; - } - - /** - * @deprecated 6.0.0 - * Gets all queued tasks of a specific app - * @param string $app app name - * @return array an array of associative arrays - * @since 4.5.0 - */ - public static function queuedTaskWhereAppIs($app) { - return []; - } - - /** - * @deprecated 6.0.0 - * queues a task - * @param string $app app name - * @param string $class class name - * @param string $method method name - * @param string $parameters all useful data as text - * @return boolean id of task - * @since 4.5.0 - */ - public static function addQueuedTask($app, $class, $method, $parameters) { - self::registerJob('OC\BackgroundJob\Legacy\QueuedJob', array('app' => $app, 'klass' => $class, 'method' => $method, 'parameters' => $parameters)); - return true; - } - - /** - * @deprecated 6.0.0 - * deletes a queued task - * @param int $id id of task - * @return boolean|null - * - * Deletes a report - * @since 4.5.0 - */ - public static function deleteQueuedTask($id) { - $jobList = \OC::$server->getJobList(); - $job = $jobList->getById($id); - if ($job) { - $jobList->remove($job); - } - } } |