Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
refactor: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Dec 2, 2023
1 parent 6bbecea commit 1b53b42
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/days/implementations/day2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export function day2(input: string): SolutionPair {
let greenCount = 0;
let blueCount = 0;

let minRed = -1;
let minGreen = -1;
let minBlue = -1;

for (const match of matches) {
for (let i = 0; i < match.length; i++) {
const quantity = Number(match[i]);
Expand All @@ -41,10 +37,6 @@ export function day2(input: string): SolutionPair {
redCount = quantity;
}

if (quantity > minRed) {
minRed = quantity;
}

break;
}

Expand All @@ -53,10 +45,6 @@ export function day2(input: string): SolutionPair {
greenCount = quantity;
}

if (quantity > minGreen) {
minGreen = quantity;
}

break;
}

Expand All @@ -65,10 +53,6 @@ export function day2(input: string): SolutionPair {
blueCount = quantity;
}

if (quantity > minBlue) {
minBlue = quantity;
}

break;
}
}
Expand Down

0 comments on commit 1b53b42

Please sign in to comment.