Delete unused code

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2018-12-02 23:58:45 +01:00
parent 04a8c5f721
commit 35a500f91c

View file

@ -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