Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
derNiklaas committed Dec 5, 2024
1 parent d6d1252 commit a390e0f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/kotlin/Day05.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ import utils.splitAndMapToInt
class Day05 : AoCDay() {

val order: List<Pair<Int, Int>>
val printBefore = mutableMapOf<Int, Int>()
val printingOrder: List<List<Int>>

init {
val parts = input.joinToString("\n").split("\n\n")
order = parts[0].split("\n").map {
val splits = it.splitAndMapToInt("|")
printBefore += splits[1] to splits[0]
Pair(splits[0], splits[1])
}
printingOrder = parts[1].split("\n").splitAndMapToInt(",")
Expand Down

0 comments on commit a390e0f

Please sign in to comment.