Creates a line delete operation without content. Use this when the original content is not available.
(branch_id: BranchId)
| 85 | /// |
| 86 | /// Use this when the original content is not available. |
| 87 | pub fn delete_empty(branch_id: BranchId) -> Self { |
| 88 | Self { |
| 89 | branch_id, |
| 90 | operation: BranchOp::Delete { |
| 91 | branch: branch_id, |
| 92 | content: Vec::new(), |
| 93 | }, |
| 94 | token_ops: Vec::new(), |
| 95 | old_line_num: None, |
| 96 | new_line_num: None, |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | /// Set the old line number. |
| 101 | pub fn with_old_line_num(mut self, line_num: usize) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected