]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
msggrep: Remove unused code.
authorBruno Haible <bruno@clisp.org>
Sat, 4 Feb 2023 00:12:09 +0000 (01:12 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 12 Feb 2023 21:22:14 +0000 (22:22 +0100)
* gettext-tools/src/msggrep.c (nonintr_close, close): Remove.

gettext-tools/src/msggrep.c

index e3b7a9ca4e6170af529a6abff19e8364d8fd3f73..76e7b99db56944bc40f5bb1928f9f1624190b8b2 100644 (file)
@@ -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 <haible@clisp.cons.org>, 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