Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
Signed-off-by: toktar <[email protected]>
  • Loading branch information
Toktar authored May 13, 2024
1 parent 029fcad commit 1210bc3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions vdr/src/contracts/did/types/did.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ impl DID {
Ok(ParsedDid::try_from(self)?.as_short_did())
}

pub fn get_method_specefic_id(&self) -> &str {
let (_, id) = self.0.rsplit_once(':').unwrap_or_default();

id
}

pub(crate) fn validate(&self) -> VdrResult<()> {
if !DID_REGEX.is_match(&self.0) {
return Err(VdrError::InvalidDidDocument(format!(
Expand Down

0 comments on commit 1210bc3

Please sign in to comment.