Remove unused fish_iswgraph

This commit is contained in:
Fabian Boehm 2025-01-09 20:20:28 +01:00
parent 5c25d3c3b1
commit 52cb42ba3d

View file

@ -595,16 +595,6 @@ pub fn fish_iswalnum(c: char) -> bool {
!fish_reserved_codepoint(c) && !fish_is_pua(c) && c.is_alphanumeric() !fish_reserved_codepoint(c) && !fish_is_pua(c) && c.is_alphanumeric()
} }
extern "C" {
fn iswgraph(wc: libc::wchar_t) -> libc::c_int; // Technically it's wint_t
}
/// We need this because there are too many implementations that don't return the proper answer for
/// some code points. See issue #3050.
pub fn fish_iswgraph(c: char) -> bool {
!fish_reserved_codepoint(c) && (fish_is_pua(c) || unsafe { iswgraph(c as libc::wchar_t) } != 0)
}
pub fn fish_wcswidth(s: &wstr) -> isize { pub fn fish_wcswidth(s: &wstr) -> isize {
fallback::fish_wcswidth(s) fallback::fish_wcswidth(s)
} }