From: Karel Zak Date: Fri, 11 Feb 2022 11:15:30 +0000 (+0100) Subject: include/carefulputc: remove unused function X-Git-Tag: v2.38-rc2~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b3c2e80d134bf03dc27aa9b385a79e45db856ef;p=thirdparty%2Futil-linux.git include/carefulputc: remove unused function Signed-off-by: Karel Zak --- diff --git a/include/carefulputc.h b/include/carefulputc.h index 66a0f156a4..8860b12340 100644 --- a/include/carefulputc.h +++ b/include/carefulputc.h @@ -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 */