From: Paul Eggert Date: Fri, 22 Sep 2023 17:05:58 +0000 (-0700) Subject: maint: omit some unused function tests X-Git-Tag: v9.5~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6648d4102f6fea171dcf3598c412b3842f2b84b;p=thirdparty%2Fcoreutils.git maint: omit some unused function tests * m4/jm-macros.m4: Do not check for ftruncate, iswspace, mkfifo, mbrlen, sysctl. Coreutils no longer uses the corresponding HAVE_* macros, typically because Gnulib handles them now. * src/wc.c (iswspace): Remove; unused. --- diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 84c1209af9..350964f0e2 100644 --- a/m4/jm-macros.m4 +++ b/m4/jm-macros.m4 @@ -1,4 +1,4 @@ -#serial 114 -*- autoconf -*- +#serial 115 -*- autoconf -*- dnl Misc type-related macros for coreutils. @@ -67,16 +67,11 @@ AC_DEFUN([coreutils_MACROS], fallocate fchown fchmod - ftruncate - iswspace - mkfifo - mbrlen setgroups sethostname siginterrupt sync syncfs - sysctl sysinfo tcgetpgrp ]) diff --git a/src/wc.c b/src/wc.c index c0b37b5576..341ff9c7dc 100644 --- a/src/wc.c +++ b/src/wc.c @@ -36,11 +36,6 @@ #include "stat-size.h" #include "xbinary-io.h" -#if !defined iswspace && !HAVE_ISWSPACE -# define iswspace(wc) \ - ((wc) == to_uchar (wc) && isspace (to_uchar (wc))) -#endif - /* The official name of this program (e.g., no 'g' prefix). */ #define PROGRAM_NAME "wc"