Skip to content

Commit 2cad53e

Browse files
authored
Merge pull request #4838 from gitbutlerapp/update-set-branch-target-logic-impl
remove unused set branch target function
2 parents 8dfd421 + b9e39a4 commit 2cad53e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

crates/gitbutler-branch/src/state.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ impl VirtualBranchesHandle {
9494
.ok_or(anyhow!("there is no default target").context(Code::DefaultTargetNotFound))
9595
}
9696

97-
/// Sets the target for the given virtual branch.
98-
///
99-
/// Errors if the file cannot be read or written.
100-
pub fn set_branch_target(&self, id: BranchId, target: Target) -> Result<()> {
101-
let mut virtual_branches = self.read_file()?;
102-
virtual_branches.branch_targets.insert(id, target);
103-
self.write_file(&virtual_branches)?;
104-
Ok(())
105-
}
106-
10797
/// Sets the state of the given virtual branch.
10898
///
10999
/// Errors if the file cannot be read or written.

0 commit comments

Comments
 (0)