refactor: remove unused function

pull/12043/head
Nik Revenco 2025-03-25 16:06:47 +00:00
parent bf788f5f00
commit 2cc5222226
1 changed files with 0 additions and 8 deletions

View File

@ -4,14 +4,6 @@ use crate::Tendril;
// todo: should this be grapheme aware? // todo: should this be grapheme aware?
pub fn simple_case_conversion(
chars: impl Iterator<Item = char>,
buf: &mut Tendril,
transform_char: impl Fn(&char) -> char,
) {
*buf = chars.map(|ch| transform_char(&ch)).collect();
}
/// Whether there is a camelCase transition, such as at 'l' -> 'C' /// Whether there is a camelCase transition, such as at 'l' -> 'C'
fn has_camel_transition(prev: Option<char>, current: char) -> bool { fn has_camel_transition(prev: Option<char>, current: char) -> bool {
current.is_uppercase() && prev.is_some_and(|ch| ch.is_lowercase()) current.is_uppercase() && prev.is_some_and(|ch| ch.is_lowercase())