diff --git a/crates/gitbutler-core/src/assets.rs b/crates/gitbutler-core/src/assets.rs index 08b81e679..7a792d35c 100644 --- a/crates/gitbutler-core/src/assets.rs +++ b/crates/gitbutler-core/src/assets.rs @@ -7,9 +7,7 @@ use url::Url; use crate::{ users, - virtual_branches::{ - Author, BaseBranch, RemoteBranchData, RemoteCommit, VirtualBranch, VirtualBranchCommit, - }, + virtual_branches::{Author, BaseBranch, RemoteBranchData, RemoteCommit}, }; #[derive(Clone)] @@ -40,40 +38,6 @@ impl Proxy { user } - async fn proxy_virtual_branch_commit( - &self, - commit: VirtualBranchCommit, - ) -> VirtualBranchCommit { - VirtualBranchCommit { - author: self.proxy_author(commit.author).await, - ..commit - } - } - - pub async fn proxy_virtual_branch(&self, branch: VirtualBranch) -> VirtualBranch { - VirtualBranch { - commits: join_all( - branch - .commits - .iter() - .map(|commit| self.proxy_virtual_branch_commit(commit.clone())) - .collect::>(), - ) - .await, - ..branch - } - } - - pub async fn proxy_virtual_branches(&self, branches: Vec) -> Vec { - join_all( - branches - .into_iter() - .map(|branch| self.proxy_virtual_branch(branch)) - .collect::>(), - ) - .await - } - pub async fn proxy_remote_branch_data(&self, branch: RemoteBranchData) -> RemoteBranchData { RemoteBranchData { commits: join_all(