From 52cb42ba3d14efbb59b122030cda0d887717c791 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Thu, 9 Jan 2025 20:20:28 +0100 Subject: [PATCH] Remove unused fish_iswgraph --- src/wutil/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) 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) }