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;