chore: cleanup unused code

This commit is contained in:
Amaan Qureshi 2025-01-17 11:44:27 -05:00
parent 9dbe165296
commit 6e88672dac
5 changed files with 0 additions and 31 deletions

View file

@ -669,12 +669,6 @@ Subtree ts_subtree_edit(Subtree self, const TSInputEdit *input_edit, SubtreePool
padding = edit.new_end;
}
// If the edit is a pure insertion right at the start of the subtree,
// shift the subtree over according to the insertion.
else if (edit.start.bytes == padding.bytes && is_pure_insertion) {
padding = edit.new_end;
}
// If the edit is within this subtree, resize the subtree to reflect the edit.
else if (
edit.start.bytes < total_size.bytes ||