From 7c2ef99d051cbc390a4b388ac381f747aa56e2f9 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Tue, 14 Nov 2023 14:20:02 +0100 Subject: [PATCH] chore(driver): Remove unused error variant `NoValueToPropose`, remove `Env` trait --- Code/driver/src/error.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Code/driver/src/error.rs b/Code/driver/src/error.rs index 85c2e77aa..c659e4455 100644 --- a/Code/driver/src/error.rs +++ b/Code/driver/src/error.rs @@ -7,9 +7,6 @@ pub enum Error where Ctx: Context, { - /// No value to propose - NoValueToPropose, - /// Proposer not found ProposerNotFound(Ctx::Address), @@ -27,7 +24,6 @@ where #[cfg_attr(coverage_nightly, coverage(off))] fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { - Error::NoValueToPropose => write!(f, "No value to propose"), Error::ProposerNotFound(addr) => write!(f, "Proposer not found: {addr}"), Error::ValidatorNotFound(addr) => write!(f, "Validator not found: {addr}"), Error::InvalidVoteSignature(vote, validator) => write!( @@ -46,7 +42,6 @@ where #[cfg_attr(coverage_nightly, coverage(off))] fn eq(&self, other: &Self) -> bool { match (self, other) { - (Error::NoValueToPropose, Error::NoValueToPropose) => true, (Error::ProposerNotFound(addr1), Error::ProposerNotFound(addr2)) => addr1 == addr2, (Error::ValidatorNotFound(addr1), Error::ValidatorNotFound(addr2)) => addr1 == addr2, (