From: Bruno Haible Date: Sat, 4 Feb 2023 00:12:09 +0000 (+0100) Subject: msggrep: Remove unused code. X-Git-Tag: v0.22~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b101d3bd9e1048df49dd566a5e95bdef9fe9a9f5;p=thirdparty%2Fgettext.git msggrep: Remove unused code. * gettext-tools/src/msggrep.c (nonintr_close, close): Remove. --- diff --git a/gettext-tools/src/msggrep.c b/gettext-tools/src/msggrep.c index e3b7a9ca4..76e7b99db 100644 --- a/gettext-tools/src/msggrep.c +++ b/gettext-tools/src/msggrep.c @@ -1,5 +1,5 @@ /* Extract some translations of a translation catalog. - Copyright (C) 2001-2007, 2009-2010, 2012, 2014, 2016, 2018-2022 Free Software + Copyright (C) 2001-2007, 2009-2010, 2012, 2014, 2016, 2018-2023 Free Software Foundation, Inc. Written by Bruno Haible , 2001. @@ -656,29 +656,6 @@ filename_list_match (const string_list_ty *slp, const char *filename) } -#ifdef EINTR - -/* EINTR handling for close(). - These functions can return -1/EINTR even though we don't have any - signal handlers set up, namely when we get interrupted via SIGSTOP. */ - -static inline int -nonintr_close (int fd) -{ - int retval; - - do - retval = close (fd); - while (retval < 0 && errno == EINTR); - - return retval; -} -#undef close -#define close nonintr_close - -#endif - - /* Process a string STR of size LEN bytes through grep, and return true if it matches. */ static bool