Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ancazamfir committed Nov 4, 2023
1 parent 9c4f56e commit 045f065
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Code/round/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,10 @@ where
..self
}
}

pub fn next_step(self) -> Self {
let step = match self.step {
Step::NewRound => Step::Propose,
Step::Propose => Step::Prevote,
Step::Prevote => Step::Precommit,
_ => self.step,
};

Self { step, ..self }
}

pub fn with_step(self, step: Step) -> Self {
Self { step, ..self }
}

pub fn commit_step(self) -> Self {
Self {
step: Step::Commit,
..self
}
}

pub fn set_locked(self, value: Ctx::Value) -> Self {
Self {
locked: Some(RoundValue::new(value, self.round)),
Expand Down

0 comments on commit 045f065

Please sign in to comment.