This function is no longer called from edit-operations.ts after the op/pos/end/lines schema refactor in PR #2079. Remove the function definition and its 3 dedicated test cases.