Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaKateryna committed Dec 10, 2023
1 parent ea146c8 commit aa040eb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions AdventOfCode/Day10.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public Day10()

public override ValueTask<string> Solve_1()
{

Point start = GetStart();
(char value, Direction from)[] startOptions =
[
Expand Down Expand Up @@ -84,10 +83,6 @@ private Point GetStart()
case ('J', Direction.North):
case ('7', Direction.South):
return point.J - 1 < 0 ? null : (new Point(point.I, point.J - 1, _input[point.I][point.J - 1]), Direction.East);
case ('.', Direction.North):
case ('.', Direction.East):
case ('.', Direction.South):
case ('.', Direction.West):
default:
return null;
}
Expand Down

0 comments on commit aa040eb

Please sign in to comment.