mirror of https://codeberg.org/topola/topola.git
stepper: get rid of unused parts
This commit is contained in:
parent
8a372c4a7a
commit
10d778c807
|
|
@ -21,15 +21,6 @@ pub trait PollStep<C, S>: StepError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
impl<C, S, Stepper: Step<C, Poll<S>>> PollStep<C, S> for Stepper {
|
|
||||||
#[inline]
|
|
||||||
fn poll_step(&mut self, context: &mut C) -> Poll<Result<S, Self::Error>> {
|
|
||||||
self.step(context)?.map(Ok)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
impl<C, S, Stepper: PollStep<C, S>> Step<C, Poll<S>> for Stepper {
|
impl<C, S, Stepper: PollStep<C, S>> Step<C, Poll<S>> for Stepper {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn step(&mut self, context: &mut C) -> Result<Poll<S>, Self::Error> {
|
fn step(&mut self, context: &mut C) -> Result<Poll<S>, Self::Error> {
|
||||||
|
|
@ -40,10 +31,6 @@ impl<C, S, Stepper: PollStep<C, S>> Step<C, Poll<S>> for Stepper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait StepBack<C, S>: StepError {
|
|
||||||
fn step_back(&mut self, context: &mut C) -> Result<S, Self::Error>;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub trait Abort<C> {
|
pub trait Abort<C> {
|
||||||
fn abort(&mut self, context: &mut C);
|
fn abort(&mut self, context: &mut C);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue