stepper: get rid of unused parts

This commit is contained in:
Alain Emilia Anna Zscheile 2024-10-05 20:53:45 +02:00
parent 8a372c4a7a
commit 10d778c807
1 changed files with 0 additions and 13 deletions

View File

@ -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 {
#[inline]
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> {
fn abort(&mut self, context: &mut C);
}