From 115df4b9e2fec28449d7f6c2a10ed2633b5f062b Mon Sep 17 00:00:00 2001 From: Paul Tirk Date: Mon, 11 Apr 2022 15:53:44 +0000 Subject: remove duplicate function Signed-off-by: Paul Tirk --- lib/Service/ItemServiceV2.php | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'lib/Service/ItemServiceV2.php') 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 @@ -211,32 +211,6 @@ class ItemServiceV2 extends Service return $this->mapper->update($item); } - /** - * 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 * -- cgit v1.2.3