Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle/storage: Remove unused Remote methods
Fintan Halpenny committed 1 month ago
commit ba8d6b88642c2c1155c12e4afa177b3cadb9aa08
parent e78d477
1 file changed +0 -24
modified crates/radicle/src/storage.rs
@@ -336,16 +336,6 @@ impl<V> Remotes<V> {
    }
}

-
impl Remotes<Verified> {
-
    pub fn unverified(self) -> Remotes<Unverified> {
-
        Remotes(
-
            self.into_iter()
-
                .map(|(id, r)| (id, r.unverified()))
-
                .collect(),
-
        )
-
    }
-
}
-

impl<V> Default for Remotes<V> {
    fn default() -> Self {
        Self(RandomMap::default())
@@ -387,26 +377,12 @@ impl Remote<Unverified> {
    }
}

-
impl Remote<Unverified> {
-
    pub fn verified<R: ReadRepository>(self, repo: &R) -> Result<Remote<Verified>, Error> {
-
        let refs = self.refs.verified(repo)?;
-

-
        Ok(Remote { refs })
-
    }
-
}
-

impl Remote<Verified> {
    /// Create a new unverified remotes object.
    pub fn new(refs: impl Into<SignedRefs<Verified>>) -> Self {
        Self { refs: refs.into() }
    }

-
    pub fn unverified(self) -> Remote<Unverified> {
-
        Remote {
-
            refs: self.refs.unverified(),
-
        }
-
    }
-

    pub fn to_refspecs(&self) -> Vec<Refspec<PatternString, PatternString>> {
        let ns = self.id.to_namespace();
        // Nb. the references in Refs are expected to be Qualified