remove unused set branch target function

This commit is contained in:
Kiril Videlov 2024-09-06 11:08:36 +02:00
parent a3800459c3
commit b9e39a4503
No known key found for this signature in database
GPG Key ID: A4C733025427C471

View File

@ -94,16 +94,6 @@ impl VirtualBranchesHandle {
.ok_or(anyhow!("there is no default target").context(Code::DefaultTargetNotFound))
}
/// Sets the target for the given virtual branch.
///
/// Errors if the file cannot be read or written.
pub fn set_branch_target(&self, id: BranchId, target: Target) -> Result<()> {
let mut virtual_branches = self.read_file()?;
virtual_branches.branch_targets.insert(id, target);
self.write_file(&virtual_branches)?;
Ok(())
}
/// Sets the state of the given virtual branch.
///
/// Errors if the file cannot be read or written.