summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/base.php b/lib/base.php
index 444c0df7e9e..b6382a069b3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -54,7 +54,6 @@
*
*/
-use OC\Settings\RemoveOrphaned;
use OCP\Share;
use OC\Encryption\HookManager;
use OC\Files\Filesystem;
@@ -721,7 +720,6 @@ class OC {
self::registerEncryptionWrapper();
self::registerEncryptionHooks();
self::registerAccountHooks();
- self::registerSettingsHooks();
$settings = new \OC\Settings\Application();
$settings->register();
@@ -833,22 +831,6 @@ class OC {
}
}
- public static function registerSettingsHooks() {
- $dispatcher = \OC::$server->getEventDispatcher();
- $dispatcher->addListener(OCP\App\ManagerEvent::EVENT_APP_DISABLE, function($event) {
- /** @var \OCP\App\ManagerEvent $event */
- \OC::$server->getSettingsManager()->onAppDisabled($event->getAppID());
- });
- $dispatcher->addListener(OCP\App\ManagerEvent::EVENT_APP_UPDATE, function($event) {
- /** @var \OCP\App\ManagerEvent $event */
- $jobList = \OC::$server->getJobList();
- $job = RemoveOrphaned::class;
- if(!$jobList->has($job, null)) {
- $jobList->add($job);
- }
- });
- }
-
private static function registerEncryptionWrapper() {
$manager = self::$server->getEncryptionManager();
\OCP\Util::connectHook('OC_Filesystem', 'preSetup', $manager, 'setupStorage');