mirror of https://github.com/helix-editor/helix
refactor: remove unused function
parent
bf788f5f00
commit
2cc5222226
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue