diff --git a/crates/radicle/src/storage.rs b/crates/radicle/src/storage.rs index a11bb9fe0..a9620ff81 100644 --- a/crates/radicle/src/storage.rs +++ b/crates/radicle/src/storage.rs @@ -545,9 +545,6 @@ pub trait ReadRepository: Sized + ValidateRepository { /// Get the root commit of the canonical identity branch. fn identity_root(&self) -> Result; - /// Get the root commit of the identity branch of a specific remote. - fn identity_root_of(&self, remote: &RemoteId) -> Result; - /// Load the identity history. fn identity(&self) -> Result where diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs index 3331bd52a..ca6678eed 100644 --- a/crates/radicle/src/storage/git.rs +++ b/crates/radicle/src/storage/git.rs @@ -891,21 +891,6 @@ impl ReadRepository for Repository { Ok(root.into()) } - fn identity_root_of(&self, remote: &RemoteId) -> Result { - // Remotes that run newer clients will have this reference set. For older clients, - // compute the root OID based on the identity head. - if let Ok(root) = self.reference_oid(remote, &git::refs::storage::IDENTITY_ROOT) { - return Ok(root); - } - let oid = self.identity_head_of(remote)?; - let root = self - .revwalk(oid)? - .last() - .ok_or(RepositoryError::Doc(DocError::Missing))??; - - Ok(root.into()) - } - fn canonical_identity_head(&self) -> Result { let blob = match self.backend.find_blob(self.id.deref().into()) { Ok(blob) => blob, diff --git a/crates/radicle/src/storage/git/cob.rs b/crates/radicle/src/storage/git/cob.rs index 01f191e8f..95ba5ccf6 100644 --- a/crates/radicle/src/storage/git/cob.rs +++ b/crates/radicle/src/storage/git/cob.rs @@ -365,10 +365,6 @@ impl ReadRepository for DraftStore<'_, R> { self.repo.identity_root() } - fn identity_root_of(&self, remote: &RemoteId) -> Result { - self.repo.identity_root_of(remote) - } - fn canonical_identity_head(&self) -> Result { self.repo.canonical_identity_head() } diff --git a/crates/radicle/src/test/storage.rs b/crates/radicle/src/test/storage.rs index 7755828d1..b3d5778e5 100644 --- a/crates/radicle/src/test/storage.rs +++ b/crates/radicle/src/test/storage.rs @@ -327,10 +327,6 @@ impl ReadRepository for MockRepository { Ok(self.doc.commit) } - fn identity_root_of(&self, _remote: &RemoteId) -> Result { - Ok(self.doc.commit) - } - fn canonical_identity_head(&self) -> Result { Ok(self.doc.commit) }