From e55e6f1f14d04251a6e1fc43e1687907ad6cc647 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sat, 29 Oct 2016 14:29:50 +0200 Subject: [PATCH] Cleanup usages Signed-off-by: Roeland Jago Douma --- lib/private/App/CodeChecker/DeprecationCheck.php | 7 ------- lib/private/AppFramework/Core/API.php | 13 ------------- 2 files changed, 20 deletions(-) diff --git a/lib/private/App/CodeChecker/DeprecationCheck.php b/lib/private/App/CodeChecker/DeprecationCheck.php index 60e7fdf078d..a700345238b 100644 --- a/lib/private/App/CodeChecker/DeprecationCheck.php +++ b/lib/private/App/CodeChecker/DeprecationCheck.php @@ -114,13 +114,6 @@ class DeprecationCheck extends AbstractCheck implements ICheck { 'OCP\AppFramework\IAppContainer::isAdminUser' => '8.0.0', 'OCP\AppFramework\IAppContainer::log' => '8.0.0', - 'OCP\BackgroundJob::addQueuedTask' => '6.0.0', - 'OCP\BackgroundJob::addRegularTask' => '6.0.0', - 'OCP\BackgroundJob::allQueuedTasks' => '6.0.0', - 'OCP\BackgroundJob::allRegularTasks' => '6.0.0', - 'OCP\BackgroundJob::deleteQueuedTask' => '6.0.0', - 'OCP\BackgroundJob::findQueuedTask' => '6.0.0', - 'OCP\BackgroundJob::queuedTaskWhereAppIs' => '6.0.0', 'OCP\BackgroundJob::registerJob' => '8.1.0', 'OCP\Files::tmpFile' => '8.1.0', diff --git a/lib/private/AppFramework/Core/API.php b/lib/private/AppFramework/Core/API.php index 85cdc00a63a..683962d67dc 100644 --- a/lib/private/AppFramework/Core/API.php +++ b/lib/private/AppFramework/Core/API.php @@ -170,19 +170,6 @@ class API implements IApi{ } } - - /** - * Register a backgroundjob task - * @param string $className full namespace and class name of the class - * @param string $methodName the name of the static method that should be - * called - * @deprecated Use \OC::$server->getJobList()->add(); - */ - public function addRegularTask($className, $methodName) { - \OCP\Backgroundjob::addRegularTask($className, $methodName); - } - - /** * Tells ownCloud to include a template in the admin overview * @param string $mainPath the path to the main php file without the php -- 2.39.5