diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-07-04 12:45:17 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-04 12:45:17 +0200 |
commit | 31d5dac63dcf8063a87205b684cf6ba81593f5be (patch) | |
tree | 675f9275815b90f9ca64d20c5712fb652402e98b /libimagstore | |
parent | 41d7d1c213dc98a7962fe92bba1539706040309b (diff) |
Revert "Add StoreId::unstorified()"
This reverts commit 37380c84b9a4ddb8dc59beab1f961a54eb31b643.
We do not want such a feature in the store, actually.
StoreId objects are either storified or not, but you cannot unstorify
them.
Diffstat (limited to 'libimagstore')
-rw-r--r-- | libimagstore/src/storeid.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index 93c19dd7..48f8b834 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -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 { |