Skip to content

Commit

Permalink
ledger/storage/lazy: remove unused error cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Sep 22, 2022
1 parent 1988c63 commit 8fc3b02
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions shared/src/ledger/storage_api/collections/lazy_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ pub enum NestedSubKey<K, S> {
#[allow(missing_docs)]
#[derive(Error, Debug)]
pub enum ValidationError {
#[error("Storage error in reading key {0}")]
StorageError(storage::Key),
#[error("Invalid storage key {0}")]
InvalidSubKey(storage::Key),
#[error("Invalid nested storage key {0}")]
Expand Down
2 changes: 0 additions & 2 deletions shared/src/ledger/storage_api/collections/lazy_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ pub enum Action<T> {
#[allow(missing_docs)]
#[derive(Error, Debug)]
pub enum ValidationError {
#[error("Storage error in reading key {0}")]
StorageError(storage::Key),
#[error("Incorrect difference in LazyVec's length")]
InvalidLenDiff,
#[error("An empty LazyVec must be deleted from storage")]
Expand Down

0 comments on commit 8fc3b02

Please sign in to comment.