From 5f4e0adb28957c52f2f8404fb92504ec799c3ae7 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 12 Jul 2024 10:16:13 +0200 Subject: [PATCH] remove now unused `default_target()` function --- crates/gitbutler-branch-actions/src/actions.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/gitbutler-branch-actions/src/actions.rs b/crates/gitbutler-branch-actions/src/actions.rs index 08b873e11..2dd45293f 100644 --- a/crates/gitbutler-branch-actions/src/actions.rs +++ b/crates/gitbutler-branch-actions/src/actions.rs @@ -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 { crate::integration::verify_branch(&project_repository)?; Ok(project_repository) } - -fn default_target(base_path: &Path) -> anyhow::Result { - VirtualBranchesHandle::new(base_path).get_default_target() -}