Skip to content

Commit 0e1d0af

Browse files
committed
Fixing sonar issues.
1 parent 697df37 commit 0e1d0af

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/kotlin/adventofcode/day12/GardenGroups.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ data class PerimeterPoint(val point: Point2D, val side: Direction) {
4646

4747
data class GardenGroup(private val points: Set<Point2D>) {
4848

49-
private fun Point2D.isHorizontalSidePoint() = this.north() in points || this.south() in points
50-
5149
private fun sides(): List<Set<PerimeterPoint>> {
5250
val perimeter = perimeter()
5351
return Graphs.connectedComponents(perimeter) { p -> p.neighbors().filter { it in perimeter } }

0 commit comments

Comments
 (0)