Revert "Add StoreId::unstorified()"
This reverts commit 37380c84b9
.
We do not want such a feature in the store, actually.
StoreId objects are either storified or not, but you cannot unstorify
them.
This commit is contained in:
parent
41d7d1c213
commit
31d5dac63d
1 changed files with 0 additions and 8 deletions
|
@ -9,7 +9,6 @@ use std::fmt::Error as FmtError;
|
|||
use std::result::Result as RResult;
|
||||
|
||||
use error::StoreErrorKind as SEK;
|
||||
use error::MapErrInto;
|
||||
use store::Result;
|
||||
use store::Store;
|
||||
|
||||
|
@ -27,13 +26,6 @@ impl StoreId {
|
|||
StoreId::from(new_id)
|
||||
}
|
||||
|
||||
pub fn unstorified(self, store: &Store) -> Result<StoreId> {
|
||||
self.strip_prefix(store.path())
|
||||
.map(PathBuf::from)
|
||||
.map(StoreId::from)
|
||||
.map_err_into(SEK::StoreIdHandlingError)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl Into<PathBuf> for StoreId {
|
||||
|
|
Loading…
Reference in a new issue