diff options
author | Tobia De Koninck <tobia@ledfan.be> | 2018-02-13 08:04:26 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-03-06 10:47:16 +0100 |
commit | 96a5752340bc115ad8dffa50cfe3846557f82cc5 (patch) | |
tree | 806afab7f90abf84dc11c9753c43b3c3e25f4e03 | |
parent | 55b9a5d88689f41fa6ae7f7858bc800a495f4b74 (diff) | |
download | nextcloud-server-96a5752340bc115ad8dffa50cfe3846557f82cc5.tar.gz nextcloud-server-96a5752340bc115ad8dffa50cfe3846557f82cc5.zip |
Remove unused $enableAppsCache in OC_App
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
-rw-r--r-- | lib/private/legacy/app.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index 303afa797dc..bc450ffa25d 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -157,13 +157,6 @@ class OC_App { \OC::$server->getAppManager()->disableApp($app); } } - if (self::isType($app, array('authentication'))) { - // since authentication apps affect the "is app enabled for group" check, - // the enabled apps cache needs to be cleared to make sure that the - // next time getEnableApps() is called it will also include apps that were - // enabled for groups - self::$enabledAppsCache = []; - } \OC::$server->getEventLogger()->end('load_app_' . $app); } @@ -330,11 +323,6 @@ class OC_App { } /** - * get all enabled apps - */ - protected static $enabledAppsCache = []; - - /** * Returns apps enabled for the current user. * * @param bool $forceRefresh whether to refresh the cache @@ -393,7 +381,6 @@ class OC_App { */ public function enable(string $appId, array $groups = []) { - self::$enabledAppsCache = []; // flush // Check if app is already downloaded $installer = \OC::$server->query(Installer::class); |