conflicts: delete unused conflict_to_materialized_value()

This commit is contained in:
Martin von Zweigbergk 2023-05-31 14:03:55 -07:00 committed by Martin von Zweigbergk
parent 35b19b1e28
commit 3a69fa48f6

View file

@ -257,20 +257,6 @@ fn diff_size(hunks: &[DiffHunk]) -> usize {
.sum()
}
pub fn conflict_to_materialized_value(
store: &Store,
path: &RepoPath,
conflict: &Conflict,
) -> TreeValue {
let mut buf = vec![];
materialize_conflict(store, path, conflict, &mut buf).unwrap();
let file_id = store.write_file(path, &mut buf.as_slice()).unwrap();
TreeValue::File {
id: file_id,
executable: false,
}
}
/// Parses conflict markers from a slice. Returns None if there were no valid
/// conflict markers. The caller has to provide the expected number of removed
/// and added inputs to the conflicts. Conflict markers that are otherwise valid