diff --git a/src/wutil/mod.rs b/src/wutil/mod.rs index 96c6c1313..6cb0cc07c 100644 --- a/src/wutil/mod.rs +++ b/src/wutil/mod.rs @@ -595,16 +595,6 @@ pub fn fish_iswalnum(c: char) -> bool { !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 { fallback::fish_wcswidth(s) }