aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-11 13:18:45 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-21 18:19:09 +0200
commitddb65be58f718f448387fe011a2541ff3eeeff84 (patch)
tree54bc0da01541a59ad97981000b5e1d59b213da32 /apps/dav
parentbe50bd1b0f959f883f413cd496e5bfd7182c15a5 (diff)
downloadnextcloud-server-ddb65be58f718f448387fe011a2541ff3eeeff84.tar.gz
nextcloud-server-ddb65be58f718f448387fe011a2541ff3eeeff84.zip
chore: cleanup unused code
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php43
1 files changed, 0 insertions, 43 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 8330934fa75..4cccdc842b9 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -341,49 +341,6 @@ class FilesReportPlugin extends ServerPlugin {
return $nodes;
}
- private function getSystemTagFileIds($systemTagIds) {
- $resultFileIds = null;
-
- // check user permissions, if applicable
- if (!$this->isAdmin()) {
- // check visibility/permission
- $tags = $this->tagManager->getTagsByIds($systemTagIds);
- $unknownTagIds = [];
- foreach ($tags as $tag) {
- if (!$tag->isUserVisible()) {
- $unknownTagIds[] = $tag->getId();
- }
- }
-
- if (!empty($unknownTagIds)) {
- throw new TagNotFoundException('Tag with ids ' . implode(', ', $unknownTagIds) . ' not found');
- }
- }
-
- // fetch all file ids and intersect them
- foreach ($systemTagIds as $systemTagId) {
- $fileIds = $this->tagMapper->getObjectIdsForTags($systemTagId, 'files');
-
- if (empty($fileIds)) {
- // This tag has no files, nothing can ever show up
- return [];
- }
-
- // first run ?
- if ($resultFileIds === null) {
- $resultFileIds = $fileIds;
- } else {
- $resultFileIds = array_intersect($resultFileIds, $fileIds);
- }
-
- if (empty($resultFileIds)) {
- // Empty intersection, nothing can show up anymore
- return [];
- }
- }
- return $resultFileIds;
- }
-
/**
* @suppress PhanUndeclaredClassMethod
* @param array $circlesIds