diff options
author | Paul Tirk <paultirk@paultirk.com> | 2022-04-11 15:53:44 +0000 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-04-30 20:04:30 +0200 |
commit | 115df4b9e2fec28449d7f6c2a10ed2633b5f062b (patch) | |
tree | d8e5bc28df8e939f53c585499077a4bb04b3c0ce /lib/Service/ItemServiceV2.php | |
parent | b9c4f0bacb64aed63939430609d76fb1967b0d63 (diff) |
remove duplicate function
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'lib/Service/ItemServiceV2.php')
-rw-r--r-- | lib/Service/ItemServiceV2.php | 26 |
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 |