Skip to content

Commit 8424643

Browse files
committed
fix: Remove unused property
Signed-off-by: Julius Knorr <[email protected]> fix: Remove unused property Signed-off-by: Julius Knorr <[email protected]>
1 parent 2f64bd8 commit 8424643

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/DAV/LockBackend.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
use OCP\Files\NotFoundException;
4040
use Sabre\DAV\Locks\Backend\BackendInterface;
4141
use Sabre\DAV\Locks\LockInfo;
42-
use Sabre\DAV\Server;
4342

4443
class LockBackend implements BackendInterface {
4544
/** @var FileService */
@@ -52,9 +51,8 @@ class LockBackend implements BackendInterface {
5251
private $absolute = false;
5352

5453
public function __construct(
55-
Server $server, FileService $fileService, LockService $lockService, bool $absolute
54+
FileService $fileService, LockService $lockService, bool $absolute
5655
) {
57-
$this->server = $server;
5856
$this->fileService = $fileService;
5957
$this->lockService = $lockService;
6058
$this->absolute = $absolute;

lib/DAV/LockPlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function initialize(Server $server) {
5858
$absolute = true;
5959
break;
6060
}
61-
$this->locksBackend = new LockBackend($server, $this->fileService, $this->lockService, $absolute);
61+
$this->locksBackend = new LockBackend($this->fileService, $this->lockService, $absolute);
6262
$server->on('propFind', [$this, 'customProperties']);
6363
parent::initialize($server);
6464
}

0 commit comments

Comments
 (0)