summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-03-20 12:22:15 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-03-20 15:16:13 +0100
commit942281a48e2791cf6c46de758985e62806bed363 (patch)
treeddd253d4c3ad9449cd44fdc22a0b81e3e82f10b3 /apps
parent2d00e2bbe77ab9bb150555e5cef7a269c8a25b4a (diff)
downloadnextcloud-server-942281a48e2791cf6c46de758985e62806bed363.tar.gz
nextcloud-server-942281a48e2791cf6c46de758985e62806bed363.zip
Remove unused IUserSession
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/updatenotification/lib/Settings/Admin.php4
-rw-r--r--apps/updatenotification/tests/Settings/AdminTest.php5
2 files changed, 1 insertions, 8 deletions
diff --git a/apps/updatenotification/lib/Settings/Admin.php b/apps/updatenotification/lib/Settings/Admin.php
index b1abdd874d1..571a8e9f906 100644
--- a/apps/updatenotification/lib/Settings/Admin.php
+++ b/apps/updatenotification/lib/Settings/Admin.php
@@ -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;
}
diff --git a/apps/updatenotification/tests/Settings/AdminTest.php b/apps/updatenotification/tests/Settings/AdminTest.php
index 3eaeb592224..9d40cb4d292 100644
--- a/apps/updatenotification/tests/Settings/AdminTest.php
+++ b/apps/updatenotification/tests/Settings/AdminTest.php
@@ -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
);
}