]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - lib/string_helpers.c
seq_file: drop unused *_escape_mem_ascii()
[thirdparty/linux.git] / lib / string_helpers.c
index c15aea7a82e97f56aa263e81370f283ecc856b88..5a35c7e16e96cc706903ec9afac1591ef6af81cc 100644 (file)
@@ -582,25 +582,6 @@ int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz,
 }
 EXPORT_SYMBOL(string_escape_mem);
 
-int string_escape_mem_ascii(const char *src, size_t isz, char *dst,
-                                       size_t osz)
-{
-       char *p = dst;
-       char *end = p + osz;
-
-       while (isz--) {
-               unsigned char c = *src++;
-
-               if (!isprint(c) || !isascii(c) || c == '"' || c == '\\')
-                       escape_hex(c, &p, end);
-               else
-                       escape_passthrough(c, &p, end);
-       }
-
-       return p - dst;
-}
-EXPORT_SYMBOL(string_escape_mem_ascii);
-
 /*
  * Return an allocated string that has been escaped of special characters
  * and double quotes, making it safe to log in quotes.