radicle/storage: Remove unused Remote methods

Remove the methods and constructors, that are unused, from
`struct Remote`.
This commit is contained in:
Fintan Halpenny 2026-03-03 15:06:00 +00:00 committed by Lorenz Leutgeb
parent e78d477bcf
commit ba8d6b8864
1 changed files with 0 additions and 24 deletions

View File

@ -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