Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused resolution code #862

Merged
merged 1 commit into from
Jun 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bindings/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#![allow(deprecated)]
#![allow(clippy::upper_case_acronyms)]
#![allow(clippy::unused_unit)]
#![allow(clippy::await_holding_refcell_ref)] // complains about RefCell<Account> in future_to_promise, should only panic in multithreaded code/web workers

#[macro_use]
extern crate serde;
Expand Down
21 changes: 0 additions & 21 deletions identity-did/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

//! Errors that may occur when working with Decentralized Identifiers.

use crate::verification::MethodType;

/// Alias for a [`Result`][::core::result::Result] with the error type [Error].
pub type Result<T, E = Error> = ::core::result::Result<T, E>;

Expand Down Expand Up @@ -42,10 +40,6 @@ pub enum Error {
#[error("unable to modify relationships on embedded methods, use insert or remove instead")]
InvalidMethodEmbedded,

/// Caused by attempting to revoke an unsupported method.
#[error("revocation is not supported for {0}")]
InvalidMethodRevocation(MethodType),

#[error("Unknown Method Scope")]
UnknownMethodScope,
#[error("Unknown Method Type")]
Expand All @@ -60,19 +54,4 @@ pub enum Error {

#[error("signature verification failed: {0}")]
InvalidSignature(&'static str),

#[error("Missing Resolution DID")]
MissingResolutionDID,
#[error("Missing Resolution Metadata")]
MissingResolutionMetadata,
#[error("Missing Resolution Document")]
MissingResolutionDocument,
#[error("Missing Resolution Document/Metadata")]
MissingResolutionData,
#[error("Invalid DID Resolution Query")]
InvalidDIDQuery,
#[error("Invalid DID Resolution Fragment")]
InvalidDIDFragment,
#[error("Invalid DID Resolution Service")]
InvalidResolutionService,
}
1 change: 0 additions & 1 deletion identity-did/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub mod diff;
pub mod did;
pub mod document;
pub mod error;
pub mod resolution;
pub mod service;
pub mod utils;
pub mod verifiable;
Expand Down
33 changes: 0 additions & 33 deletions identity-did/src/resolution/dereference.rs

This file was deleted.

34 changes: 0 additions & 34 deletions identity-did/src/resolution/document_metadata.rs

This file was deleted.

20 changes: 0 additions & 20 deletions identity-did/src/resolution/error_kind.rs

This file was deleted.

Loading