From ba8d6b88642c2c1155c12e4afa177b3cadb9aa08 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Tue, 3 Mar 2026 15:06:00 +0000 Subject: [PATCH] radicle/storage: Remove unused Remote methods Remove the methods and constructors, that are unused, from `struct Remote`. --- crates/radicle/src/storage.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/crates/radicle/src/storage.rs b/crates/radicle/src/storage.rs index d1640682..e1836c83 100644 --- a/crates/radicle/src/storage.rs +++ b/crates/radicle/src/storage.rs @@ -336,16 +336,6 @@ impl Remotes { } } -impl Remotes { - pub fn unverified(self) -> Remotes { - Remotes( - self.into_iter() - .map(|(id, r)| (id, r.unverified())) - .collect(), - ) - } -} - impl Default for Remotes { fn default() -> Self { Self(RandomMap::default()) @@ -387,26 +377,12 @@ impl Remote { } } -impl Remote { - pub fn verified(self, repo: &R) -> Result, Error> { - let refs = self.refs.verified(repo)?; - - Ok(Remote { refs }) - } -} - impl Remote { /// Create a new unverified remotes object. pub fn new(refs: impl Into>) -> Self { Self { refs: refs.into() } } - pub fn unverified(self) -> Remote { - Remote { - refs: self.refs.unverified(), - } - } - pub fn to_refspecs(&self) -> Vec> { let ns = self.id.to_namespace(); // Nb. the references in Refs are expected to be Qualified