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.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/Service/ItemServiceV2.php b/lib/Service/ItemServiceV2.php
index 4f314105b..57804a8c3 100644
--- a/lib/Service/ItemServiceV2.php
+++ b/lib/Service/ItemServiceV2.php
@@ -212,32 +212,6 @@ class ItemServiceV2 extends Service
}
/**
- * Mark an item as starred by id
- *
- * @param string $userId Item owner
- * @param int $itemId
- * @param bool $starred
- *
- * @return Item
- * @throws ServiceConflictException
- * @throws ServiceNotFoundException
- */
- public function starByItemId(string $userId, int $itemId, bool $starred): Entity
- {
- try {
- $item = $this->mapper->findFromUser($userId, $itemId);
- } catch (DoesNotExistException $ex) {
- throw ServiceNotFoundException::from($ex);
- } catch (MultipleObjectsReturnedException $ex) {
- throw ServiceConflictException::from($ex);
- }
-
- $item->setStarred($starred);
-
- return $this->mapper->update($item);
- }
-
- /**
* Mark all items as read
*
* @param string $userId Item owner