From a6648d4102f6fea171dcf3598c412b3842f2b84b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 22 Sep 2023 10:05:58 -0700 Subject: [PATCH] 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. --- m4/jm-macros.m4 | 7 +------ src/wc.c | 5 ----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index 84c1209af..350964f0e 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 c0b37b557..341ff9c7d 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" -- 2.11.4.GIT