Skip to content

Commit

Permalink
remove records.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulrahim Al Methiab committed Mar 7, 2022
1 parent 9810cbf commit fe8c90a
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 254 deletions.
2 changes: 0 additions & 2 deletions identity-account/src/stronghold/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,4 @@ pub enum StrongholdError {
/// Caused by errors from an invalid Stronghold procedure.
#[error("Stronghold error: {0}")]
StrongholdResult(String),
#[error("Record Error")]
RecordError,
}
2 changes: 0 additions & 2 deletions identity-account/src/stronghold/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
mod context;
mod error;
mod hint;
mod records;
mod snapshot;
mod status;
mod store;
Expand All @@ -13,7 +12,6 @@ mod vault;
pub use self::context::*;
pub use self::error::*;
pub use self::hint::*;
pub use self::records::*;
pub use self::snapshot::*;
pub use self::status::*;
pub use self::store::*;
Expand Down
242 changes: 0 additions & 242 deletions identity-account/src/stronghold/records.rs

This file was deleted.

8 changes: 0 additions & 8 deletions identity-account/src/stronghold/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use std::time::Duration;
use crate::stronghold::Context;
use crate::stronghold::IotaStrongholdResult;
use crate::stronghold::Password;
use crate::stronghold::Records;
use crate::stronghold::SnapshotStatus;
use crate::stronghold::Store;
use crate::stronghold::Vault;
Expand Down Expand Up @@ -58,13 +57,6 @@ impl Snapshot {
Store::new(&self.path, name, flags)
}

pub fn records<T>(&self, name: &T, flags: &[StrongholdFlags]) -> Records<'_>
where
T: AsRef<[u8]> + ?Sized,
{
Records::new(&self.path, name, flags)
}

pub async fn status(&self) -> IotaStrongholdResult<SnapshotStatus> {
Context::snapshot_status(&self.path).await
}
Expand Down

0 comments on commit fe8c90a

Please sign in to comment.