]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove unused IUserSession 14578/head
authorJoas Schilling <coding@schilljs.com>
Wed, 20 Mar 2019 11:22:15 +0000 (12:22 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 20 Mar 2019 14:16:13 +0000 (15:16 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/updatenotification/lib/Settings/Admin.php
apps/updatenotification/tests/Settings/AdminTest.php

index b1abdd874d12dd494c686edc82bda2d631c71f4d..571a8e9f9062b279288e0cac0f171d602745c2b8 100644 (file)
@@ -45,8 +45,6 @@ class Admin implements ISettings {
        private $groupManager;
        /** @var IDateTimeFormatter */
        private $dateTimeFormatter;
-       /** @var IUserSession */
-       private $session;
        /** @var IFactory */
        private $l10nFactory;
 
@@ -55,14 +53,12 @@ class Admin implements ISettings {
                UpdateChecker $updateChecker,
                IGroupManager $groupManager,
                IDateTimeFormatter $dateTimeFormatter,
-               IUserSession $session,
                IFactory $l10nFactory
        ) {
                $this->config = $config;
                $this->updateChecker = $updateChecker;
                $this->groupManager = $groupManager;
                $this->dateTimeFormatter = $dateTimeFormatter;
-               $this->session = $session;
                $this->l10nFactory = $l10nFactory;
        }
 
index 3eaeb5922249f15a1e7232ec8f4ff0baadf2ecc4..9d40cb4d292796f2e708ff3d45b0fbc715be514a 100644 (file)
@@ -39,8 +39,6 @@ use OCP\Util;
 use Test\TestCase;
 
 class AdminTest extends TestCase {
-       /** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
-       protected $userSession;
        /** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */
        protected $l10nFactory;
        /** @var Admin */
@@ -61,11 +59,10 @@ class AdminTest extends TestCase {
                $this->updateChecker = $this->createMock(UpdateChecker::class);
                $this->groupManager = $this->createMock(IGroupManager::class);
                $this->dateTimeFormatter = $this->createMock(IDateTimeFormatter::class);
-               $this->userSession = $this->createMock(IUserSession::class);
                $this->l10nFactory = $this->createMock(IFactory::class);
 
                $this->admin = new Admin(
-                       $this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->userSession, $this->l10nFactory
+                       $this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->l10nFactory
                );
        }