summaryrefslogtreecommitdiffstats
path: root/lib/Service/ItemServiceV2.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/ItemServiceV2.php')
-rw-r--r--lib/Service/ItemServiceV2.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/lib/Service/ItemServiceV2.php b/lib/Service/ItemServiceV2.php
index 3dd1b04d7..d7955e265 100644
--- a/lib/Service/ItemServiceV2.php
+++ b/lib/Service/ItemServiceV2.php
@@ -295,18 +295,6 @@ class ItemServiceV2 extends Service
return $this->mapper->findAllInFolderAfter($userId, $folderId, $updatedSince, $hideRead);
}
- /**
- * Returns all new shared items
- * @param string $userId the name of the user
- * @param int $updatedSince a timestamp with the minimal modification date
- * @param boolean $hideRead if unread items should also be returned
- *
- * @return array of items
- */
- public function findAllSharedAfter(string $userId, int $updatedSince, bool $hideRead): array
- {
- return $this->mapper->findAllSharedAfter($userId, $updatedSince, $hideRead);
- }
/**
* Returns all new items of a type
@@ -382,31 +370,6 @@ class ItemServiceV2 extends Service
return $this->mapper->findAllFolder($userId, $folderId, $limit, $offset, $hideRead, $oldestFirst, $search);
}
/**
- * Returns all items shared with a user
- *
- * @param int|null $folderId the id of the folder
- * @param int $limit how many items should be returned
- * @param int $offset the offset
- * @param boolean $hideRead if unread items should also be returned
- * @param boolean $oldestFirst if it should be ordered by oldest first
- * @param string $userId the name of the user
- * @param string[] $search an array of keywords that the result should
- * contain in either the author, title, link
- * or body
- *
- * @return array of items
- */
- public function findAllSharedWithUserWithFilters(
- string $userId,
- int $limit,
- int $offset,
- bool $hideRead,
- bool $oldestFirst,
- array $search = []
- ): array {
- return $this->mapper->findAllSharedWithUser($userId, $limit, $offset, $hideRead, $oldestFirst, $search);
- }
- /**
* Returns all items
*
* @param int $type the type of the feed
@@ -486,19 +449,4 @@ class ItemServiceV2 extends Service
return $this->mapper->insert($sharedItem);
}
-
- /**
- * Return all items shared with a given user
- *
- * @param string $userId
- *
- * @return Item[]
- */
- public function sharedWithUser(string $userId): array
- {
- return $this->findAllForUser($userId, [
- 'shared_with' => $userId,
- 'unread' => true
- ]);
- }
}