Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jul 3, 2024
1 parent 1430fca commit 7e2eb0a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 19 deletions.
3 changes: 0 additions & 3 deletions src/engine/dfs/ls/generatePairings/getFirstSuitableMatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ export default ({
return true;
});

console.log('num remaining possible games', remainingGames.length);

const orderedRemainingGames = orderBy(remainingGames, [
m => {
const hPot = Math.floor(m[0] / numTeamsPerPot);
Expand All @@ -106,7 +104,6 @@ export default ({
]);

return orderedRemainingGames.find(m => {
console.log('test...', m);
const solution = findFirstSolution(
{
source: remainingGames,
Expand Down
2 changes: 0 additions & 2 deletions src/engine/dfs/ls/generatePairings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export default async function* generatePairings<T>({

allGames = allGames.filter(([h, a]) => isMatchPossible(teams[h], teams[a]));

console.log('initial games', allGames.length, JSON.stringify(allGames));

const matches: (readonly [number, number])[] = [];

while (matches.length < numMatchdays * numGamesPerMatchday) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,8 @@ export default ({
c.numMatchesPerMatchday[c.pickedMatchday] + 1,
);

// console.log(newMatchIndex);

if (newMatchIndex > record) {
// eslint-disable-next-line no-console
console.log(newMatchIndex);
record = newMatchIndex;
}
Expand All @@ -218,9 +217,6 @@ export default ({
},
);

// if (!solution) {
// console.log('sol', solution);
// }
if (solution) {
const arr = Array.from(
{
Expand Down
1 change: 0 additions & 1 deletion src/pages/cl/ls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ function LeagueStage({ pots: initialPots }: Props) {
for await (const pickedMatch of generator) {
setPairings(prev => [...prev, pickedMatch]);
}
console.log('pairings', JSON.stringify(pairings));
setIsFixturesDone(true);
};

Expand Down
8 changes: 0 additions & 8 deletions src/utils/raceWorkers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ export default async <Func extends (...args: any) => void>({
},
async (_, workerIndex) => {
for (let attempt = 0; !gotResult; ++attempt) {
if (workerIndex === 0) {
console.log(
'spawning',
workerIndex,
attempt,
getTimeout(workerIndex, attempt),
);
}
const worker = getWorker();
workers[workerIndex] = worker;
// eslint-disable-next-line no-await-in-loop
Expand Down

0 comments on commit 7e2eb0a

Please sign in to comment.