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:
Matthias Beyer 2016-07-04 12:45:17 +02:00
parent 41d7d1c213
commit 31d5dac63d

View file

@ -9,7 +9,6 @@ use std::fmt::Error as FmtError;
use std::result::Result as RResult; use std::result::Result as RResult;
use error::StoreErrorKind as SEK; use error::StoreErrorKind as SEK;
use error::MapErrInto;
use store::Result; use store::Result;
use store::Store; use store::Store;
@ -27,13 +26,6 @@ impl StoreId {
StoreId::from(new_id) 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 { impl Into<PathBuf> for StoreId {