summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-14 16:10:19 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-14 16:10:19 +0100
commit0b6eaa863da89ccb1865b92e52fc4e8b851dc2ef (patch)
tree52bde7163e730a800fcd293fb5a621eb6f66cc3f /lib
parent6023fadaf40f48d5e4b5780cefca569c5dac3c43 (diff)
parent086485100129797af5cd0bcd9d32ff132bb46a1b (diff)
downloadnextcloud-server-0b6eaa863da89ccb1865b92e52fc4e8b851dc2ef.tar.gz
nextcloud-server-0b6eaa863da89ccb1865b92e52fc4e8b851dc2ef.zip
Merge pull request #23208 from owncloud/reduce-unneeded-methods
Replace unneded OC::needUpgrade with OCP method
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php10
-rw-r--r--lib/public/backgroundjob.php2
2 files changed, 1 insertions, 11 deletions
diff --git a/lib/base.php b/lib/base.php
index 7db4ec4a8fa..7659148c140 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -339,16 +339,6 @@ class OC {
}
/**
- * check if the instance needs to perform an upgrade
- *
- * @return bool
- * @deprecated use \OCP\Util::needUpgrade() instead
- */
- public static function needUpgrade() {
- return \OCP\Util::needUpgrade();
- }
-
- /**
* Checks if the version requires an update and shows
* @param bool $showTemplate Whether an update screen should get shown
* @return bool|void
diff --git a/lib/public/backgroundjob.php b/lib/public/backgroundjob.php
index 69397bb3e45..f532a97c747 100644
--- a/lib/public/backgroundjob.php
+++ b/lib/public/backgroundjob.php
@@ -99,7 +99,7 @@ class BackgroundJob {
* @since 4.5.0
*/
public static function addRegularTask($klass, $method) {
- if (!\OC::needUpgrade()) {
+ if (!\OCP\Util::needUpgrade()) {
self::registerJob('OC\BackgroundJob\Legacy\RegularJob', array($klass, $method));
return true;
}