From 97bb52ed385cb028481c62c897e0e34beb0802e8 Mon Sep 17 00:00:00 2001 From: Sebastian Raaphorst Date: Fri, 13 Dec 2024 21:36:00 -0500 Subject: [PATCH] D10: Removing unused variables. --- src/main/kotlin/day10/day10.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/kotlin/day10/day10.kt b/src/main/kotlin/day10/day10.kt index d771a7e..7b048b5 100644 --- a/src/main/kotlin/day10/day10.kt +++ b/src/main/kotlin/day10/day10.kt @@ -16,9 +16,6 @@ private fun parse(input: String): List> = .map { line -> line.trim().toList().map { it.digitToIntOrNull() ?: -1 } } private fun findTrails(grid: List>): Map { - val rows = grid.size - val cols = grid[0].size - val zeros = grid.flatMapIndexed { rowIdx, row -> row.mapIndexedNotNull { colIdx, height -> if (height == 0) IntPos2D(rowIdx, colIdx) else null