diff --git a/src/engine/dfs/ls/generatePairings/getFirstSuitableMatch.ts b/src/engine/dfs/ls/generatePairings/getFirstSuitableMatch.ts index 220321e5..5c8b808d 100644 --- a/src/engine/dfs/ls/generatePairings/getFirstSuitableMatch.ts +++ b/src/engine/dfs/ls/generatePairings/getFirstSuitableMatch.ts @@ -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); @@ -106,7 +104,6 @@ export default ({ ]); return orderedRemainingGames.find(m => { - console.log('test...', m); const solution = findFirstSolution( { source: remainingGames, diff --git a/src/engine/dfs/ls/generatePairings/index.ts b/src/engine/dfs/ls/generatePairings/index.ts index d2dc5745..2aaf2aa9 100644 --- a/src/engine/dfs/ls/generatePairings/index.ts +++ b/src/engine/dfs/ls/generatePairings/index.ts @@ -42,8 +42,6 @@ export default async function* generatePairings({ 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) { diff --git a/src/engine/dfs/ls/generateSchedule/getFirstSuitableMatchday.ts b/src/engine/dfs/ls/generateSchedule/getFirstSuitableMatchday.ts index 51e25a19..ffa75a38 100644 --- a/src/engine/dfs/ls/generateSchedule/getFirstSuitableMatchday.ts +++ b/src/engine/dfs/ls/generateSchedule/getFirstSuitableMatchday.ts @@ -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; } @@ -218,9 +217,6 @@ export default ({ }, ); - // if (!solution) { - // console.log('sol', solution); - // } if (solution) { const arr = Array.from( { diff --git a/src/pages/cl/ls/index.tsx b/src/pages/cl/ls/index.tsx index 8524ecd1..668f11b4 100644 --- a/src/pages/cl/ls/index.tsx +++ b/src/pages/cl/ls/index.tsx @@ -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); }; diff --git a/src/utils/raceWorkers.ts b/src/utils/raceWorkers.ts index 7577ccf2..3331b8f8 100644 --- a/src/utils/raceWorkers.ts +++ b/src/utils/raceWorkers.ts @@ -39,14 +39,6 @@ export default async 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