From 85b1b54271e610767dfb5f9e76af817d32102851 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Wed, 27 May 2020 20:50:28 +0200 Subject: Clean unnecessary @Throws --- sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt | 1 - 1 file changed, 1 deletion(-) (limited to 'sw-engine') diff --git a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt index 01026722..e8d9ab40 100644 --- a/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt +++ b/sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt @@ -11,7 +11,6 @@ internal fun List.deal(nbPlayers: Int): Hands { internal class Decks(private val cardsPerAge: Map>) { - @Throws(Decks.CardNotFoundException::class) fun getCard(age: Int, cardName: String): Card = getDeck(age).firstOrNull { c -> c.name == cardName } ?: throw CardNotFoundException(cardName) -- cgit