stim: remove the unused Stimulus impl for Shifted

This commit is contained in:
2022-08-24 15:42:37 -07:00
parent 7f089bad45
commit a2ee85d03f

View File

@@ -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<R> {
fn at(&self, t_sec: R) -> FieldMags<R>;
@@ -179,13 +178,6 @@ impl<R: Real, T: TimeVarying<R>> TimeVarying<R> for Shifted<R, T> {
}
}
// TODO: is this necessary?
impl<R: Real, T: Stimulus<R>> Stimulus<R> for Shifted<R, T> {
fn at(&self, t_sec: R, feat_size: R, loc: Index) -> Fields<R> {
self.inner.at(t_sec - self.start_at, feat_size, loc)
}
}
#[derive(Clone)]
pub struct Scaled<A, B>(A, B);