Skip to content

Commit 262aef5

Browse files
committed
Remove unused IUserSession
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 5a64750 commit 262aef5

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

apps/updatenotification/lib/Settings/Admin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ class Admin implements ISettings {
4545
private $groupManager;
4646
/** @var IDateTimeFormatter */
4747
private $dateTimeFormatter;
48-
/** @var IUserSession */
49-
private $session;
5048
/** @var IFactory */
5149
private $l10nFactory;
5250

@@ -55,14 +53,12 @@ public function __construct(
5553
UpdateChecker $updateChecker,
5654
IGroupManager $groupManager,
5755
IDateTimeFormatter $dateTimeFormatter,
58-
IUserSession $session,
5956
IFactory $l10nFactory
6057
) {
6158
$this->config = $config;
6259
$this->updateChecker = $updateChecker;
6360
$this->groupManager = $groupManager;
6461
$this->dateTimeFormatter = $dateTimeFormatter;
65-
$this->session = $session;
6662
$this->l10nFactory = $l10nFactory;
6763
}
6864

apps/updatenotification/tests/Settings/AdminTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
use Test\TestCase;
4040

4141
class AdminTest extends TestCase {
42-
/** @var IUserSession|\PHPUnit_Framework_MockObject_MockObject */
43-
protected $userSession;
4442
/** @var IFactory|\PHPUnit_Framework_MockObject_MockObject */
4543
protected $l10nFactory;
4644
/** @var Admin */
@@ -61,11 +59,10 @@ public function setUp() {
6159
$this->updateChecker = $this->createMock(UpdateChecker::class);
6260
$this->groupManager = $this->createMock(IGroupManager::class);
6361
$this->dateTimeFormatter = $this->createMock(IDateTimeFormatter::class);
64-
$this->userSession = $this->createMock(IUserSession::class);
6562
$this->l10nFactory = $this->createMock(IFactory::class);
6663

6764
$this->admin = new Admin(
68-
$this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->userSession, $this->l10nFactory
65+
$this->config, $this->updateChecker, $this->groupManager, $this->dateTimeFormatter, $this->l10nFactory
6966
);
7067
}
7168

0 commit comments

Comments
 (0)