From c43ad9bfb9467627df1b40266ac7b0d570a55a62 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 21 Jul 2022 15:44:49 +0200 Subject: Refactor to move `index` field to `point` --- src/construct/paragraph.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/construct/paragraph.rs') diff --git a/src/construct/paragraph.rs b/src/construct/paragraph.rs index 3932ad8..a2eb6ff 100644 --- a/src/construct/paragraph.rs +++ b/src/construct/paragraph.rs @@ -112,10 +112,8 @@ pub fn resolve(tokenizer: &mut Tokenizer, map: &mut EditMap) -> bool { // Add Exit:LineEnding position info to Exit:Data. let line_ending_exit = &tokenizer.events[exit_index + 2]; let line_ending_point = line_ending_exit.point.clone(); - let line_ending_index = line_ending_exit.index; let data_exit = &mut tokenizer.events[exit_index - 1]; data_exit.point = line_ending_point; - data_exit.index = line_ending_index; // Link Enter:Data on the previous line to Enter:Data on this line. if let Some(link) = &mut tokenizer.events[exit_index - 2].link { -- cgit