remove unused enum_dispatch

This commit is contained in:
2022-07-29 16:07:07 -07:00
parent 9c1fc65068
commit c5e2713b51
3 changed files with 0 additions and 20 deletions

13
Cargo.lock generated
View File

@@ -318,7 +318,6 @@ dependencies = [
"csv", "csv",
"dashmap", "dashmap",
"dyn-clone", "dyn-clone",
"enum_dispatch",
"env_logger", "env_logger",
"float_eq", "float_eq",
"font8x8", "font8x8",
@@ -578,18 +577,6 @@ version = "1.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be" checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be"
[[package]]
name = "enum_dispatch"
version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0eb359f1476bf611266ac1f5355bc14aeca37b299d0ebccc038ee7058891c9cb"
dependencies = [
"once_cell",
"proc-macro2",
"quote",
"syn",
]
[[package]] [[package]]
name = "env_logger" name = "env_logger"
version = "0.9.0" version = "0.9.0"

View File

@@ -16,7 +16,6 @@ crossterm = "0.24" # MIT
csv = "1.1" # MIT or Unlicense csv = "1.1" # MIT or Unlicense
dashmap = "5.3" # MIT dashmap = "5.3" # MIT
dyn-clone = "1.0" # MIT or Apache 2.0 dyn-clone = "1.0" # MIT or Apache 2.0
enum_dispatch = "0.3" # MIT or Apache 2.0
env_logger = "0.9" # MIT or Apache 2.0 env_logger = "0.9" # MIT or Apache 2.0
float_eq = "1.0" # MIT or Apache 2.0 float_eq = "1.0" # MIT or Apache 2.0
font8x8 = "0.3" # MIT font8x8 = "0.3" # MIT

View File

@@ -2,7 +2,6 @@ use crate::real::Real;
use crate::sim::legacy::{CellState, PmlParameters, PmlState, StepParameters, StepParametersMut}; use crate::sim::legacy::{CellState, PmlParameters, PmlState, StepParameters, StepParametersMut};
use crate::cross::vec::Vec3; use crate::cross::vec::Vec3;
use enum_dispatch::enum_dispatch;
use serde::{Serialize, Deserialize}; use serde::{Serialize, Deserialize};
pub mod db; pub mod db;
@@ -20,8 +19,6 @@ pub use coremem_cross::mat::{
}; };
pub use linear::*; pub use linear::*;
// TODO: remove enum_dispatch
#[enum_dispatch]
pub trait Material<R: Real> { pub trait Material<R: Real> {
fn step_parameters_mut<'a>(&'a mut self) -> StepParametersMut<'a, R> { fn step_parameters_mut<'a>(&'a mut self) -> StepParametersMut<'a, R> {
// by default, behave as a vacuum // by default, behave as a vacuum
@@ -129,7 +126,6 @@ impl<R: Real> Material<R> for Pml<R> {
material_compat!(R, Pml<R>); material_compat!(R, Pml<R>);
// #[enum_dispatch(Material)]
#[derive(Clone, PartialEq, Serialize, Deserialize)] #[derive(Clone, PartialEq, Serialize, Deserialize)]
pub enum GenericMaterial<R> { pub enum GenericMaterial<R> {
Conductor(AnisomorphicConductor<R>), Conductor(AnisomorphicConductor<R>),
@@ -228,7 +224,6 @@ impl<R: Real> Material<R> for GenericMaterial<R> {
} }
material_compat!(R, GenericMaterial<R>); material_compat!(R, GenericMaterial<R>);
// #[enum_dispatch(Material)]
#[derive(Clone, Serialize, Deserialize)] #[derive(Clone, Serialize, Deserialize)]
pub enum GenericMaterialNoPml<R> { pub enum GenericMaterialNoPml<R> {
Conductor(AnisomorphicConductor<R>), Conductor(AnisomorphicConductor<R>),
@@ -288,7 +283,6 @@ material_compat!(R, GenericMaterialNoPml<R>);
/// Materials which have only 1 Vec3. /// Materials which have only 1 Vec3.
// #[enum_dispatch(Material)]
#[derive(Clone, Serialize, Deserialize)] #[derive(Clone, Serialize, Deserialize)]
pub enum GenericMaterialOneField<R> { pub enum GenericMaterialOneField<R> {
Conductor(AnisomorphicConductor<R>), Conductor(AnisomorphicConductor<R>),