diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-27 20:50:28 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-05-27 20:50:28 +0200 |
commit | 85b1b54271e610767dfb5f9e76af817d32102851 (patch) | |
tree | d95bee6cf056e8f892c56444380676e5d0be4eff /sw-engine | |
parent | Update development status in README (diff) | |
download | seven-wonders-85b1b54271e610767dfb5f9e76af817d32102851.tar.gz seven-wonders-85b1b54271e610767dfb5f9e76af817d32102851.tar.bz2 seven-wonders-85b1b54271e610767dfb5f9e76af817d32102851.zip |
Clean unnecessary @Throws
Diffstat (limited to 'sw-engine')
-rw-r--r-- | sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt | 1 |
1 files changed, 0 insertions, 1 deletions
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<Card>.deal(nbPlayers: Int): Hands { internal class Decks(private val cardsPerAge: Map<Int, List<Card>>) { - @Throws(Decks.CardNotFoundException::class) fun getCard(age: Int, cardName: String): Card = getDeck(age).firstOrNull { c -> c.name == cardName } ?: throw CardNotFoundException(cardName) |