summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-03 22:34:28 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit9bd27da9bac99a7780df8eb3845df566fb23b02a (patch)
treecd831abd0fa7b14c1a0bce1023599354f22f4e2f /lib/Service
parentd2e831fbaa02699516749d5d8fe455259eebf912 (diff)
🔥 Remove old share item logic & functions
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Service')
-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
- ]);
- }
}