Skip to content

Commit 221d0db

Browse files
committed
fix(dav): remove unnecessary plugin getHTTPMethods
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
1 parent 331a093 commit 221d0db

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,6 @@ public function getPluginName(): string {
2626
return 'checksumupdate';
2727
}
2828

29-
/** @return string[] */
30-
public function getHTTPMethods($path): array {
31-
$tree = $this->server->tree;
32-
33-
if ($tree->nodeExists($path)) {
34-
$node = $tree->getNodeForPath($path);
35-
if ($node instanceof File) {
36-
return ['PATCH'];
37-
}
38-
}
39-
40-
return [];
41-
}
42-
4329
/** @return string[] */
4430
public function getFeatures(): array {
4531
return ['nextcloud-checksum-update'];

0 commit comments

Comments
 (0)