diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-12-02 23:58:45 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-02-15 20:53:28 +0100 |
commit | 35a500f91c6dd1c792f5ea43d87f9b81da3f5146 (patch) | |
tree | 123266442ad125b83c947762d2506637ac3d0bdc /lib | |
parent | 04a8c5f721e7ad9c04fe46f3488c2fa2bef7d0cf (diff) |
Delete unused code
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/libimagstore/src/storeid.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/core/libimagstore/src/storeid.rs b/lib/core/libimagstore/src/storeid.rs index cc7b2881..3842057e 100644 --- a/lib/core/libimagstore/src/storeid.rs +++ b/lib/core/libimagstore/src/storeid.rs @@ -171,17 +171,6 @@ impl<'a> StoreIdWithBase<'a> { Ok(base) } - /// Check whether the StoreId exists (as in whether the file exists) - pub fn exists(&self) -> Result<bool> { - self.clone().into_pathbuf().map(|pb| pb.exists()) - } - - pub fn to_str(&self) -> Result<String> { - let mut base = self.0.clone(); - base.push(self.1.clone()); - Ok(base.display().to_string()) - } - /// Try to create a StoreId object from a filesystem-absolute path. /// /// Automatically creates a StoreId object which has a `base` set to `store_part` if stripping |