From 49084538bc8c97f5a6fd0047a0034ff7fa5f4511 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+nikitarevenco@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:10:32 +0000 Subject: [PATCH] chore: remove unused function --- helix-core/src/search.rs | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/helix-core/src/search.rs b/helix-core/src/search.rs index 18bbbc01a..81cb41293 100644 --- a/helix-core/src/search.rs +++ b/helix-core/src/search.rs @@ -17,40 +17,6 @@ impl bool> CharMatcher for F { } } -pub fn find_nth_next_tag( - text: RopeSlice, - tag: &str, - mut pos: usize, - n: usize, -) -> Option> { - if pos >= text.len_chars() || n == 0 { - return None; - } - - let mut chars = text.chars_at(pos); - - let tag = format!(""); - let len = tag.len(); - - for _ in 0..n { - loop { - let c = chars.next()?; - let cloned_chars = chars.clone(); - let stri: String = cloned_chars.take(len).collect(); - - pos += 1; - - if stri == tag { - break; - } - } - } - - let range: Vec = (pos - 1..pos + len - 1).collect(); - - Some(range) -} - pub fn find_nth_next( text: RopeSlice, char_matcher: M,