]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/carefulputc: remove unused function
authorKarel Zak <kzak@redhat.com>
Fri, 11 Feb 2022 11:15:30 +0000 (12:15 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Feb 2022 11:15:30 +0000 (12:15 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/carefulputc.h

index 66a0f156a42f07a2664f303fbe14b13a2786ee04..8860b12340b0db493403dc1f1028032e411e5622 100644 (file)
@@ -71,21 +71,4 @@ static inline void fputs_nonblank(const char *data, FILE *out)
        }
 }
 
-static inline void fputs_shell_ident(const char *data, FILE *out)
-{
-       const char *p = data;
-
-       /* convert "1FOO" to "_1FOO" */
-       if (p && !isalpha(*p))
-               fputc('_', out);
-
-       /* replace all "bad" chars with "_" */
-       for (p = data; p && *p; p++) {
-               if (!isalnum(*p))
-                       fputc('_', out);
-               else
-                       fputc(*p, out);
-       }
-}
-
 #endif  /*  _CAREFULPUTC_H  */