We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a380045 commit b9e39a4Copy full SHA for b9e39a4
crates/gitbutler-branch/src/state.rs
@@ -94,16 +94,6 @@ impl VirtualBranchesHandle {
94
.ok_or(anyhow!("there is no default target").context(Code::DefaultTargetNotFound))
95
}
96
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
-
107
/// Sets the state of the given virtual branch.
108
///
109
/// Errors if the file cannot be read or written.
0 commit comments