remove now unused default_target() function

This commit is contained in:
Sebastian Thiel 2024-07-12 10:16:13 +02:00
parent 58d3cd5aff
commit 5f4e0adb28
No known key found for this signature in database
GPG Key ID: 9CB5EE7895E8268B

View File

@ -1,5 +1,4 @@
use anyhow::Result;
use gitbutler_branch::VirtualBranchesHandle;
use gitbutler_branch::{
branch::{BranchCreateRequest, BranchId, BranchUpdateRequest},
diff,
@ -15,7 +14,6 @@ use gitbutler_project::{FetchResult, Project};
use gitbutler_reference::ReferenceName;
use gitbutler_reference::{Refname, RemoteRefname};
use gitbutler_repo::{credentials::Helper, RepoActions, RepositoryExt};
use std::path::Path;
use crate::branch_manager::branch_removal::BranchRemoval;
use crate::{
@ -31,7 +29,6 @@ use crate::{
use super::r#virtual as branch;
use crate::files::RemoteBranchFile;
use gitbutler_branch::target;
#[derive(Clone, Default)]
pub struct VirtualBranchActions {}
@ -438,7 +435,3 @@ fn open_with_verify(project: &Project) -> Result<ProjectRepository> {
crate::integration::verify_branch(&project_repository)?;
Ok(project_repository)
}
fn default_target(base_path: &Path) -> anyhow::Result<target::Target> {
VirtualBranchesHandle::new(base_path).get_default_target()
}