From 1b53b42d42763a4a4a050f1ee94ee2ef66c25489 Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Fri, 1 Dec 2023 22:38:14 -0800 Subject: [PATCH] refactor: remove dead code --- src/days/implementations/day2.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/days/implementations/day2.ts b/src/days/implementations/day2.ts index 1ab4629..850fe14 100644 --- a/src/days/implementations/day2.ts +++ b/src/days/implementations/day2.ts @@ -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]); @@ -41,10 +37,6 @@ export function day2(input: string): SolutionPair { redCount = quantity; } - if (quantity > minRed) { - minRed = quantity; - } - break; } @@ -53,10 +45,6 @@ export function day2(input: string): SolutionPair { greenCount = quantity; } - if (quantity > minGreen) { - minGreen = quantity; - } - break; } @@ -65,10 +53,6 @@ export function day2(input: string): SolutionPair { blueCount = quantity; } - if (quantity > minBlue) { - minBlue = quantity; - } - break; } }