diff --git a/crates/gitbutler-branch-actions/src/virtual.rs b/crates/gitbutler-branch-actions/src/virtual.rs index 7c8298b662..9c0d0318d5 100644 --- a/crates/gitbutler-branch-actions/src/virtual.rs +++ b/crates/gitbutler-branch-actions/src/virtual.rs @@ -1322,22 +1322,11 @@ pub(crate) fn get_applied_status( default_vbranch_pos }; - // let hash = Hunk::hash_diff(&hunk.diff_lines); - // let mut new_hunk = Hunk::from(&hunk).with_hash(hash); - // new_hunk.locked_to = match locked_to { - // Some(locked_to) => locked_to.clone(), - // _ => vec![], - // }; - virtual_branches[vbranch_pos].ownership.put(OwnershipClaim { file_path: filepath.clone(), hunks: vec![Hunk::from(&hunk).with_hash(Hunk::hash_diff(&hunk.diff_lines))], }); - // let hunk = match locked_to { - // Some(locks) => hunk.with_locks(locks), - // _ => hunk, - // }; diffs_by_branch .entry(virtual_branches[vbranch_pos].id) .or_default()