sim: remove unused AbstractSim::to_static method

This commit is contained in:
2022-08-23 23:13:15 -07:00
parent 2af754bf29
commit 17446cdc6b
3 changed files with 4 additions and 21 deletions

View File

@@ -206,8 +206,9 @@ pub trait AbstractSim: Sync {
fn put_material_index(&mut self, at: Index, m: Self::Material);
fn step_multiple<S: Stimulus<Self::Real>>(&mut self, num_steps: u32, s: &S);
/// Take a "snapshot" of the simulation, dropping all material-specific information.
fn to_static(&self) -> StaticSim;
/// convert to something which is maximally generalizable.
/// the result might then be saved to disc for later readback, where having that consistent
/// serialization format is more important than perf.
fn to_generic(&self) -> GenericSim<Self::Real>;
fn use_diagnostics(&mut self, _diag: SyncDiagnostics) {
// optional