MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / delete_empty

Method delete_empty

atomic-core/src/record/workflow/crdt/builder/branch.rs:87–98  ·  view source on GitHub ↗

Creates a line delete operation without content. Use this when the original content is not available.

(branch_id: BranchId)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected