From f52b500fb443bce90c4880570c756cf36f858a44 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+nikitarevenco@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:12:38 +0000 Subject: [PATCH] feat: remove unused comments --- helix-core/src/surround.rs | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/helix-core/src/surround.rs b/helix-core/src/surround.rs index e52ca39f8..b8e274d58 100644 --- a/helix-core/src/surround.rs +++ b/helix-core/src/surround.rs @@ -154,29 +154,6 @@ fn find_nth_closest_pairs_plain( Err(Error::PairNotFound) } -/// Find the position of surrounding tags around cursor -/// `n` will skip n - 1 tags (e.g. n=2 will discard only the first tag found) -/// and keep looking -// pub fn find_nth_tag_pos( -// text: RopeSlice, -// range: Range, -// n: usize, -// ) -> Result<((usize, usize), (usize, usize))> { -// // 7 is the minimum possible length for a tag, e.g. . -// if text.len_chars() < 7 { -// return Err(Error::PairNotFound); -// } - -// if range.to() >= text.len_chars() { -// return Err(Error::RangeExceedsText); -// } - -// let cursor_position = range.cursor(text); - -// let open = (); -// let close = (); -// } - /// Find the position of surround pairs of `ch` which can be either a closing /// or opening pair. `n` will skip n - 1 pairs (eg. n=2 will discard (only) /// the first pair found and keep looking)