From: Joas Schilling Date: Wed, 20 Mar 2019 11:22:15 +0000 (+0100) Subject: Remove unused IUserSession X-Git-Tag: v16.0.0beta1~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=942281a48e2791cf6c46de758985e62806bed363;p=nextcloud-server.git Remove unused IUserSession Signed-off-by: Joas Schilling --- 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 ); }