Merge pull request #707 from matthiasbeyer/libimagstore/remove-storeid-storified
Remove StoreId::storified()
This commit is contained in:
commit
aa7e050436
1 changed files with 0 additions and 8 deletions
|
@ -12,7 +12,6 @@ use libimagerror::into::IntoError;
|
||||||
use error::StoreErrorKind as SEK;
|
use error::StoreErrorKind as SEK;
|
||||||
use error::MapErrInto;
|
use error::MapErrInto;
|
||||||
use store::Result;
|
use store::Result;
|
||||||
use store::Store;
|
|
||||||
|
|
||||||
/// The Index into the Store
|
/// The Index into the Store
|
||||||
#[derive(Debug, Clone, PartialEq, Hash, Eq, PartialOrd, Ord)]
|
#[derive(Debug, Clone, PartialEq, Hash, Eq, PartialOrd, Ord)]
|
||||||
|
@ -63,13 +62,6 @@ impl StoreId {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn storified(self, store: &Store) -> StoreId {
|
|
||||||
StoreId {
|
|
||||||
base: Some(store.path().clone()),
|
|
||||||
id: self.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn exists(&self) -> bool {
|
pub fn exists(&self) -> bool {
|
||||||
let pb : PathBuf = self.clone().into();
|
let pb : PathBuf = self.clone().into();
|
||||||
pb.exists()
|
pb.exists()
|
||||||
|
|
Loading…
Reference in a new issue