From 84b2b2bd9640017e977a84cf1216b9bec7c782b0 Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Sun, 13 Jul 2025 14:03:34 +0100 Subject: [PATCH] ./check --- rslib/src/scheduler/fsrs/simulator.rs | 2 +- ts/routes/deck-options/SimulatorModal.svelte | 4 +--- ts/routes/graphs/simulator.ts | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/rslib/src/scheduler/fsrs/simulator.rs b/rslib/src/scheduler/fsrs/simulator.rs index cc665ee90..eba6575f0 100644 --- a/rslib/src/scheduler/fsrs/simulator.rs +++ b/rslib/src/scheduler/fsrs/simulator.rs @@ -1,6 +1,6 @@ -use std::collections::HashMap; // Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html +use std::collections::HashMap; use std::sync::Arc; use anki_proto::deck_config::deck_config::config::ReviewCardOrder; diff --git a/ts/routes/deck-options/SimulatorModal.svelte b/ts/routes/deck-options/SimulatorModal.svelte index ce998ad64..de065fb30 100644 --- a/ts/routes/deck-options/SimulatorModal.svelte +++ b/ts/routes/deck-options/SimulatorModal.svelte @@ -270,9 +270,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html }); } - const render_function = workload - ? renderWorkloadChart - : renderSimulationChart; + const render_function = workload ? renderWorkloadChart : renderSimulationChart; tableData = render_function( svg as SVGElement, diff --git a/ts/routes/graphs/simulator.ts b/ts/routes/graphs/simulator.ts index a2f4027a0..a6f4831e9 100644 --- a/ts/routes/graphs/simulator.ts +++ b/ts/routes/graphs/simulator.ts @@ -49,8 +49,6 @@ export function renderWorkloadChart( data: Point[], subgraph: SimulateWorkloadSubgraph, ) { - const today = new Date(); - const xMin = 70; const xMax = 99;