mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-04 03:42:38 +03:00
remove now unused default_target()
function
This commit is contained in:
parent
58d3cd5aff
commit
5f4e0adb28
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user