stim: remove the unused Stimulus impl for Shifted
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
//! time-varying portions of a Stimulus
|
//! time-varying portions of a Stimulus
|
||||||
|
|
||||||
use crate::real::{self, Real};
|
use crate::real::{self, Real};
|
||||||
use crate::stim::{Fields, FieldMags, Stimulus};
|
use crate::stim::FieldMags;
|
||||||
use crate::geom::Index;
|
|
||||||
|
|
||||||
pub trait TimeVarying<R> {
|
pub trait TimeVarying<R> {
|
||||||
fn at(&self, t_sec: R) -> FieldMags<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)]
|
#[derive(Clone)]
|
||||||
pub struct Scaled<A, B>(A, B);
|
pub struct Scaled<A, B>(A, B);
|
||||||
|
Reference in New Issue
Block a user