Skip to content

Commit

Permalink
refactor(rust): remove an unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre authored and adrianbenavides committed Oct 2, 2023
1 parent 75fa2e3 commit 3dd33db
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,6 @@ impl PreTrustedIdentities {
PreTrustedIdentities::Fixed(entries)
}

pub fn get_trusted_identities(self) -> Result<HashMap<Identifier, AttributesEntry>> {
match self {
PreTrustedIdentities::Fixed(identities) => Ok(identities),
PreTrustedIdentities::ReloadFrom(path) => Self::parse_from_disk(&path),
}
}

fn parse_from_disk(path: &PathBuf) -> Result<HashMap<Identifier, AttributesEntry>> {
let contents = std::fs::read_to_string(path)
.map_err(|e| ockam_core::Error::new(Origin::Other, Kind::Io, e))?;
Expand Down

0 comments on commit 3dd33db

Please sign in to comment.