diff --git a/crates/gitbutler-repo/src/repository_ext.rs b/crates/gitbutler-repo/src/repository_ext.rs index 159844bc2..0f9d1607a 100644 --- a/crates/gitbutler-repo/src/repository_ext.rs +++ b/crates/gitbutler-repo/src/repository_ext.rs @@ -32,8 +32,6 @@ pub trait RepositoryExt { fn in_memory_repo(&self) -> Result; /// Fetches the integration commit from the gitbutler/integration branch fn integration_commit(&self) -> Result>; - /// Fetches the target commit by finding the parent of the integration commit - fn target_commit(&self) -> Result>; /// Takes a CommitBuffer and returns it after being signed by by your git signing configuration fn sign_buffer(&self, buffer: &CommitBuffer) -> Result; @@ -154,10 +152,6 @@ impl RepositoryExt for git2::Repository { Ok(integration_ref.peel_to_commit()?) } - fn target_commit(&self) -> Result> { - Ok(self.integration_commit()?.parent(0)?) - } - #[allow(clippy::too_many_arguments)] fn commit_with_signature( &self,