Remove obsolete (internal) function

This commit is contained in:
Matthias Beyer 2019-06-21 21:53:54 +02:00
parent fd59d6d301
commit 1ffdb72315
2 changed files with 1 additions and 11 deletions

View File

@ -60,8 +60,7 @@ pub trait IntoValues {
impl<I: Iterator<Item = Link>> IntoValues for I { impl<I: Iterator<Item = Link>> IntoValues for I {
fn into_values(self) -> Vec<Result<Value>> { fn into_values(self) -> Vec<Result<Value>> {
self.map(|s| s.without_base()) self.unique()
.unique()
.sorted() .sorted()
.into_iter() // Cannot sort toml::Value, hence uglyness here .into_iter() // Cannot sort toml::Value, hence uglyness here
.map(|link| link.to_value().context(EM::ConversionError).map_err(Error::from)) .map(|link| link.to_value().context(EM::ConversionError).map_err(Error::from))

View File

@ -68,15 +68,6 @@ impl Link {
} }
} }
/// Helper wrapper around Link for StoreId
pub(crate) fn without_base(self) -> Link {
match self {
Link::Id { link: s } => Link::Id { link: s },
Link::Annotated { link: s, annotation: ann } =>
Link::Annotated { link: s, annotation: ann },
}
}
pub(crate) fn to_value(&self) -> Result<Value> { pub(crate) fn to_value(&self) -> Result<Value> {
match self { match self {
&Link::Id { link: ref s } => &Link::Id { link: ref s } =>