Skip to content

Commit

Permalink
chore(driver): Remove unused error variant NoValueToPropose, remove…
Browse files Browse the repository at this point in the history
… `Env` trait
  • Loading branch information
romac committed Nov 16, 2023
1 parent a03adfd commit 7c2ef99
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Code/driver/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ pub enum Error<Ctx>
where
Ctx: Context,
{
/// No value to propose
NoValueToPropose,

/// Proposer not found
ProposerNotFound(Ctx::Address),

Expand All @@ -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!(
Expand All @@ -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,
(
Expand Down

0 comments on commit 7c2ef99

Please sign in to comment.