Skip to content

Commit

Permalink
removed some debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
denniwang committed Jan 20, 2025
1 parent 2f00307 commit 45e47c5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/common/src/major2-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,20 +463,9 @@ function validateRangeRequirement(
// Adds the current course to all previous valid solutions if there are
// enough courses.
for (const solutionSoFar of solutionsSoFar) {
// Debugging statement
console.log(
"Checking solution:",
solutionSoFar,
"with course:",
courseSol
);

// TODO: if i take a course twice, can both count in the same range?
// for now assume yes. but ask khoury, then remove this note
if (tracker.hasEnoughCoursesForBoth(solutionSoFar, courseSol)) {
// Debugging statement
console.log("Valid combination found:", solutionSoFar, courseSol);

solutionsSoFarWithCourse.push({
sol: [...solutionSoFar.sol, cs],
minCredits: solutionSoFar.minCredits + course.numCreditsMin,
Expand All @@ -498,10 +487,6 @@ function validateRangeRequirement(
});
}
}

// Debugging statement
console.log("Final solutions:", solutionsSoFar);

return Ok(solutionsSoFar);
}

Expand Down

0 comments on commit 45e47c5

Please sign in to comment.