Remove unused error variants (#2941)

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
This commit is contained in:
Marek 2021-10-22 22:25:01 +02:00 committed by GitHub
parent 2a1d4281c5
commit 451448ef99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -11,7 +11,6 @@ use super::storage::{
#[derive(Error, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary))]
#[allow(dead_code)]
pub enum MempoolError {
#[error("mempool storage has a cached tip rejection for this exact transaction")]
StorageExactTip(#[from] ExactTipRejectionError),
@ -29,12 +28,6 @@ pub enum MempoolError {
#[error("transaction already exists in mempool")]
InMempool,
#[error("transaction is committed in block {0:?}")]
InBlock(zebra_chain::block::Hash),
#[error("transaction was not found in mempool")]
NotInMempool,
/// The transaction hash is already queued, so this request was ignored.
///
/// Another peer has already gossiped the same hash to us, or the mempool crawler has fetched it.
@ -52,7 +45,4 @@ pub enum MempoolError {
#[error("mempool is disabled since synchronization is behind the chain tip")]
Disabled,
#[error("error calling a service")]
ServiceError,
}