Skip to content

Commit

Permalink
removed: js scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushar-4781 committed Oct 9, 2023
1 parent 5a20307 commit 2faa4b1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 764 deletions.
10 changes: 2 additions & 8 deletions src/hooks/useScheduler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { TaskItem } from "@src/models/TaskItem";
import { GoalItem } from "@src/models/GoalItem";
import { ITaskOfDay } from "@src/Interfaces/Task";
import { getAllGoals } from "@src/api/GoalsAPI";
import { callJsScheduler } from "@src/scheduler/miniScheduler";
import { ISchedulerOutput } from "@src/Interfaces/IScheduler";
import { resetProgressOfToday } from "@src/api/TasksAPI";
import { lastAction, openDevMode } from "@src/store";
Expand Down Expand Up @@ -67,13 +66,8 @@ function useScheduler() {
await resetProgressOfToday();
const { generatedInputId, schedulerInput: schedulerInputV2 } = await generateSchedule();
newGeneratedInputId = generatedInputId;
if (devMode) {
res = callJsScheduler(schedulerInputV2);
logIO(JSON.stringify(schedulerInputV2), res);
} else {
await init();
res = schedule(schedulerInputV2);
}
await init();
res = schedule(schedulerInputV2);
}
putSchedulerRes(cachedRes.code, newGeneratedInputId, JSON.stringify(res))
.then(() => console.log("schedule saved"))
Expand Down
74 changes: 0 additions & 74 deletions src/scheduler/ImpSlotManager.ts

This file was deleted.

153 changes: 0 additions & 153 deletions src/scheduler/TaskGenerator.ts

This file was deleted.

47 changes: 0 additions & 47 deletions src/scheduler/freeSlotsManager.ts

This file was deleted.

Loading

0 comments on commit 2faa4b1

Please sign in to comment.