From a2ee85d03f618697e04697e18076f30797bc2f50 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 24 Aug 2022 15:42:37 -0700 Subject: [PATCH] stim: remove the unused Stimulus impl for Shifted --- crates/coremem/src/stim/time_varying.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crates/coremem/src/stim/time_varying.rs b/crates/coremem/src/stim/time_varying.rs index 30a0c02..e48be85 100644 --- a/crates/coremem/src/stim/time_varying.rs +++ b/crates/coremem/src/stim/time_varying.rs @@ -1,8 +1,7 @@ //! time-varying portions of a Stimulus use crate::real::{self, Real}; -use crate::stim::{Fields, FieldMags, Stimulus}; -use crate::geom::Index; +use crate::stim::FieldMags; pub trait TimeVarying { fn at(&self, t_sec: R) -> FieldMags; @@ -179,13 +178,6 @@ impl> TimeVarying for Shifted { } } -// TODO: is this necessary? -impl> Stimulus for Shifted { - fn at(&self, t_sec: R, feat_size: R, loc: Index) -> Fields { - self.inner.at(t_sec - self.start_at, feat_size, loc) - } -} - #[derive(Clone)] pub struct Scaled(A, B);