Skip to content

Commit

Permalink
Remove unused constructor argument
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Sep 27, 2018
1 parent 0259792 commit f71ffc7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,6 @@ public function __construct($webRoot, \OC\Config $config) {
$this->registerService('SettingsManager', function (Server $c) {
$manager = new \OC\Settings\Manager(
$c->getLogger(),
$c->getDatabaseConnection(),
$c->getL10N('lib'),
$c->getURLGenerator(),
$c
Expand Down
6 changes: 0 additions & 6 deletions lib/private/Settings/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
namespace OC\Settings;

use OCP\AppFramework\QueryException;
use OCP\IDBConnection;
use OCP\IL10N;
use OCP\ILogger;
use OCP\IServerContainer;
Expand All @@ -44,9 +43,6 @@ class Manager implements IManager {
/** @var ILogger */
private $log;

/** @var IDBConnection */
private $dbc;

/** @var IL10N */
private $l;

Expand All @@ -58,13 +54,11 @@ class Manager implements IManager {

public function __construct(
ILogger $log,
IDBConnection $dbc,
IL10N $l10n,
IURLGenerator $url,
IServerContainer $container
) {
$this->log = $log;
$this->dbc = $dbc;
$this->l = $l10n;
$this->url = $url;
$this->container = $container;
Expand Down
4 changes: 0 additions & 4 deletions tests/lib/Settings/ManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class ManagerTest extends TestCase {
/** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */
private $logger;
/** @var IDBConnection|\PHPUnit_Framework_MockObject_MockObject */
private $dbConnection;
/** @var IL10N|\PHPUnit_Framework_MockObject_MockObject */
private $l10n;
/** @var IURLGenerator|\PHPUnit_Framework_MockObject_MockObject */
private $url;
Expand All @@ -54,14 +52,12 @@ public function setUp() {
parent::setUp();

$this->logger = $this->createMock(ILogger::class);
$this->dbConnection = $this->createMock(IDBConnection::class);
$this->l10n = $this->createMock(IL10N::class);
$this->url = $this->createMock(IURLGenerator::class);
$this->container = $this->createMock(IServerContainer::class);

$this->manager = new Manager(
$this->logger,
$this->dbConnection,
$this->l10n,
$this->url,
$this->container
Expand Down

0 comments on commit f71ffc7

Please sign in to comment.