From b89007122d0dc22eebccc972005d9acb810c06ae Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Thu, 21 Dec 2017 22:54:51 +0100 Subject: [PATCH] squash some warnings --- substrate/candidate-agreement/src/bft/accumulator.rs | 3 +-- substrate/candidate-agreement/src/bft/mod.rs | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/substrate/candidate-agreement/src/bft/accumulator.rs b/substrate/candidate-agreement/src/bft/accumulator.rs index 69d6329f9b..a0c99698df 100644 --- a/substrate/candidate-agreement/src/bft/accumulator.rs +++ b/substrate/candidate-agreement/src/bft/accumulator.rs @@ -158,7 +158,7 @@ impl Accumulator let (sender, signature) = (message.sender, message.signature); match message.message { - Message::Propose(_, p) => self.import_proposal(p, sender, signature), + Message::Propose(_, p) => self.import_proposal(p, sender), Message::Prepare(_, d) => self.import_prepare(d, sender, signature), Message::Commit(_, d) => self.import_commit(d, sender, signature), Message::AdvanceRound(_) => self.import_advance_round(sender), @@ -169,7 +169,6 @@ impl Accumulator &mut self, proposal: C, sender: V, - signature: S, ) { if sender != self.round_proposer || self.proposal.is_some() { return } diff --git a/substrate/candidate-agreement/src/bft/mod.rs b/substrate/candidate-agreement/src/bft/mod.rs index da4b6fe91d..74476b98b0 100644 --- a/substrate/candidate-agreement/src/bft/mod.rs +++ b/substrate/candidate-agreement/src/bft/mod.rs @@ -16,12 +16,6 @@ //! BFT Agreement based on a rotating proposer in different rounds. -use std::collections::{HashMap, HashSet}; -use std::hash::Hash; - -use futures::{IntoFuture, Future, Stream, Sink}; -use futures::future::{ok, loop_fn, Loop}; - mod accumulator; /// Messages over the proposal.