mirror of https://github.com/poanetwork/hbbft.git
Remove unused Step::new.
This commit is contained in:
parent
98aad993e0
commit
8ee999b73f
|
@ -90,19 +90,6 @@ impl<M, O, N, F> Step<M, O, N, F>
|
||||||
where
|
where
|
||||||
F: Fail,
|
F: Fail,
|
||||||
{
|
{
|
||||||
/// Creates a new `Step` from the given collections.
|
|
||||||
pub fn new(
|
|
||||||
output: Vec<O>,
|
|
||||||
fault_log: FaultLog<N, F>,
|
|
||||||
messages: Vec<TargetedMessage<M, N>>,
|
|
||||||
) -> Self {
|
|
||||||
Step {
|
|
||||||
output,
|
|
||||||
fault_log,
|
|
||||||
messages,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the same step, with the given additional output.
|
/// Returns the same step, with the given additional output.
|
||||||
pub fn with_output<T: Into<Option<O>>>(mut self, output: T) -> Self {
|
pub fn with_output<T: Into<Option<O>>>(mut self, output: T) -> Self {
|
||||||
self.output.extend(output.into());
|
self.output.extend(output.into());
|
||||||
|
|
Loading…
Reference in New Issue