mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
remove unused method on the assets proxy impl
This commit is contained in:
parent
ce130dcf12
commit
7627a41c89
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user