Skip to content

Commit

Permalink
elide unused field references in building of controls in corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Jan 4, 2024
1 parent 7d35219 commit 58c7d29
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/corpus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,9 @@ fn control_from_input(
ControlDetails::OnOffCostMinimisingTimeControl {
start_day,
time_series_step,
advanced_start,
logic_type,
time_on_daily,
schedule,
..
} => Control::OnOffMinimisingTimeControl(OnOffMinimisingTimeControl::new(
expand_numeric_schedule(schedule, false),
start_day,
Expand Down Expand Up @@ -344,11 +343,9 @@ fn control_from_input(
ControlDetails::ToUChargeControl {
start_day,
time_series_step,
advanced_start,
logic_type,
charge_level,
target_charge,
schedule,
..
} => {
// Simulation manual charge control
// Set charge level to 1.0 (max) for each day of simulation (plus 1)
Expand Down

0 comments on commit 58c7d29

Please sign in to comment.