summaryrefslogtreecommitdiff
path: root/sw-engine/src/main/kotlin/org/luxons
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@booking.com>2020-05-27 20:50:28 +0200
committerJoffrey Bion <joffrey.bion@booking.com>2020-05-27 20:50:28 +0200
commit85b1b54271e610767dfb5f9e76af817d32102851 (patch)
treed95bee6cf056e8f892c56444380676e5d0be4eff /sw-engine/src/main/kotlin/org/luxons
parentUpdate development status in README (diff)
downloadseven-wonders-85b1b54271e610767dfb5f9e76af817d32102851.tar.gz
seven-wonders-85b1b54271e610767dfb5f9e76af817d32102851.tar.bz2
seven-wonders-85b1b54271e610767dfb5f9e76af817d32102851.zip
Clean unnecessary @Throws
Diffstat (limited to 'sw-engine/src/main/kotlin/org/luxons')
-rw-r--r--sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/cards/Decks.kt1
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)
bgstack15