diff --git a/lib/DAV/LockBackend.php b/lib/DAV/LockBackend.php index e6450a7b..b13c0ac5 100644 --- a/lib/DAV/LockBackend.php +++ b/lib/DAV/LockBackend.php @@ -39,7 +39,6 @@ use OCP\Files\NotFoundException; use Sabre\DAV\Locks\Backend\BackendInterface; use Sabre\DAV\Locks\LockInfo; -use Sabre\DAV\Server; class LockBackend implements BackendInterface { /** @var FileService */ @@ -52,9 +51,8 @@ class LockBackend implements BackendInterface { private $absolute = false; public function __construct( - Server $server, FileService $fileService, LockService $lockService, bool $absolute + FileService $fileService, LockService $lockService, bool $absolute ) { - $this->server = $server; $this->fileService = $fileService; $this->lockService = $lockService; $this->absolute = $absolute; diff --git a/lib/DAV/LockPlugin.php b/lib/DAV/LockPlugin.php index 93975923..61793f34 100644 --- a/lib/DAV/LockPlugin.php +++ b/lib/DAV/LockPlugin.php @@ -58,7 +58,7 @@ public function initialize(Server $server) { $absolute = true; break; } - $this->locksBackend = new LockBackend($server, $this->fileService, $this->lockService, $absolute); + $this->locksBackend = new LockBackend($this->fileService, $this->lockService, $absolute); $server->on('propFind', [$this, 'customProperties']); parent::initialize($server); }