From 3dd33db258c6861c5ec33b11a009c9df52f1118b Mon Sep 17 00:00:00 2001 From: etorreborre Date: Fri, 29 Sep 2023 18:33:02 +0200 Subject: [PATCH] refactor(rust): remove an unused method --- .../ockam/ockam_api/src/bootstrapped_identities_store.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/implementations/rust/ockam/ockam_api/src/bootstrapped_identities_store.rs b/implementations/rust/ockam/ockam_api/src/bootstrapped_identities_store.rs index 10bd35721bd..47de22c2a77 100644 --- a/implementations/rust/ockam/ockam_api/src/bootstrapped_identities_store.rs +++ b/implementations/rust/ockam/ockam_api/src/bootstrapped_identities_store.rs @@ -153,13 +153,6 @@ impl PreTrustedIdentities { PreTrustedIdentities::Fixed(entries) } - pub fn get_trusted_identities(self) -> Result> { - match self { - PreTrustedIdentities::Fixed(identities) => Ok(identities), - PreTrustedIdentities::ReloadFrom(path) => Self::parse_from_disk(&path), - } - } - fn parse_from_disk(path: &PathBuf) -> Result> { let contents = std::fs::read_to_string(path) .map_err(|e| ockam_core::Error::new(Origin::Other, Kind::Io, e))?;