aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-22 21:56:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-11-23 16:20:00 +0100
commitc832e6180bcefbd82748c8e240438d6c2e21b358 (patch)
tree6b22290c5f74bd53033b4d1957095d3e8bf2854e /apps/encryption/lib
parent032de4f333904dfb3dedb29935d43bfee6bfe0d8 (diff)
downloadnextcloud-server-c832e6180bcefbd82748c8e240438d6c2e21b358.tar.gz
nextcloud-server-c832e6180bcefbd82748c8e240438d6c2e21b358.zip
Remove unused dependencies in encryption app setup
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r--apps/encryption/lib/Users/Setup.php31
1 files changed, 3 insertions, 28 deletions
diff --git a/apps/encryption/lib/Users/Setup.php b/apps/encryption/lib/Users/Setup.php
index 2c4dd1fc63d..f68e06a3de0 100644
--- a/apps/encryption/lib/Users/Setup.php
+++ b/apps/encryption/lib/Users/Setup.php
@@ -29,40 +29,15 @@ namespace OCA\Encryption\Users;
use OCA\Encryption\Crypto\Crypt;
use OCA\Encryption\KeyManager;
-use OCP\ILogger;
-use OCP\IUserSession;
class Setup {
- /**
- * @var Crypt
- */
+ /** @var Crypt */
private $crypt;
- /**
- * @var KeyManager
- */
+ /** @var KeyManager */
private $keyManager;
- /**
- * @var ILogger
- */
- private $logger;
- /**
- * @var bool|string
- */
- private $user;
-
- /**
- * @param ILogger $logger
- * @param IUserSession $userSession
- * @param Crypt $crypt
- * @param KeyManager $keyManager
- */
- public function __construct(ILogger $logger,
- IUserSession $userSession,
- Crypt $crypt,
+ public function __construct(Crypt $crypt,
KeyManager $keyManager) {
- $this->logger = $logger;
- $this->user = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false;
$this->crypt = $crypt;
$this->keyManager = $keyManager;
}