Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Dec 3, 2024
1 parent f92110f commit 96885df
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/Controller/RemoveWishlistItemAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,4 @@ public function __invoke(string $uuid, int $id): RedirectResponse
'uuid' => $uuid,
]));
}

private function getWishlist(string $uuid): WishlistInterface
{
// todo optimize this
foreach ($this->wishlistProvider->getWishlists() as $wishlist) {
if ($wishlist->getUuid() === $uuid) {
return $wishlist;
}
}

throw new NotFoundHttpException(sprintf('Wishlist with uuid %s not found', $uuid));
}
}

0 comments on commit 96885df

Please sign in to comment.