From b286bca4859cab65090027d0f941d6471dce8c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 13 May 2025 14:17:07 +0200 Subject: [PATCH] fix(dav): remove unnecessary plugin getHTTPMethods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- .../lib/Connector/Sabre/ChecksumUpdatePlugin.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php b/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php index d8b479d0665..18009080585 100644 --- a/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php +++ b/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php @@ -26,20 +26,6 @@ class ChecksumUpdatePlugin extends ServerPlugin { return 'checksumupdate'; } - /** @return string[] */ - public function getHTTPMethods($path): array { - $tree = $this->server->tree; - - if ($tree->nodeExists($path)) { - $node = $tree->getNodeForPath($path); - if ($node instanceof File) { - return ['PATCH']; - } - } - - return []; - } - /** @return string[] */ public function getFeatures(): array { return ['nextcloud-checksum-update'];