remove unused method on the assets proxy impl

This commit is contained in:
Kiril Videlov 2024-07-07 16:06:26 +02:00
parent ce130dcf12
commit 7627a41c89
No known key found for this signature in database
GPG Key ID: A4C733025427C471

View File

@ -7,9 +7,7 @@ use url::Url;
use crate::{ use crate::{
users, users,
virtual_branches::{ virtual_branches::{Author, BaseBranch, RemoteBranchData, RemoteCommit},
Author, BaseBranch, RemoteBranchData, RemoteCommit, VirtualBranch, VirtualBranchCommit,
},
}; };
#[derive(Clone)] #[derive(Clone)]
@ -40,40 +38,6 @@ impl Proxy {
user 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::<Vec<_>>(),
)
.await,
..branch
}
}
pub async fn proxy_virtual_branches(&self, branches: Vec<VirtualBranch>) -> Vec<VirtualBranch> {
join_all(
branches
.into_iter()
.map(|branch| self.proxy_virtual_branch(branch))
.collect::<Vec<_>>(),
)
.await
}
pub async fn proxy_remote_branch_data(&self, branch: RemoteBranchData) -> RemoteBranchData { pub async fn proxy_remote_branch_data(&self, branch: RemoteBranchData) -> RemoteBranchData {
RemoteBranchData { RemoteBranchData {
commits: join_all( commits: join_all(