Skip to content

Commit 9df1c7c

Browse files
committed
rusk: remove unused error variants
1 parent 154ebe9 commit 9df1c7c

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

rusk/src/lib/error.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ use dusk_vm::Error as VMError;
1414

1515
#[derive(Debug, thiserror::Error)]
1616
pub enum Error {
17-
#[error("Failed to register a backend for persistence")]
18-
BackendRegistrationFailed,
19-
/// Failed to restore a network state from disk
20-
#[error("Failed to restore a network state")]
21-
RestoreFailed,
22-
/// Proof verification failure
23-
#[error("Proof verification failure")]
24-
ProofVerification,
2517
/// Out of gas in block execution
2618
#[error("Out of gas")]
2719
OutOfGas,
@@ -37,15 +29,9 @@ pub enum Error {
3729
/// Wrong inputs and/or outputs in the transaction verification
3830
#[error("Expected: 0 < (inputs: {0}) < 5, 0 ≤ (outputs: {1}) < 3")]
3931
InvalidCircuitArguments(usize, usize),
40-
/// Failed to build a Rusk instance
41-
#[error("Failed to build a Rusk instance")]
42-
BuilderInvalidState,
4332
/// Failed to fetch opening
4433
#[error("Failed to fetch opening of position {0}")]
4534
OpeningPositionNotFound(u64),
46-
/// Failed to fetch opening due to undefined Note
47-
#[error("Note {0} not found, opening of position")]
48-
OpeningNoteUndefined(u64),
4935
/// Bytes Serialization Errors
5036
#[error("Serialization Error: {0:?}")]
5137
Serialization(dusk_bytes::Error),

0 commit comments

Comments
 (0)