Remove unused function quote_it()

This function is no longer needed.  It was problematic anyway because it didn't have a way for
the caller to specify the destination buffer size.
This commit is contained in:
Kevin Easton
2016-10-13 01:44:29 +11:00
parent 04cf832604
commit eb4b2a29d6
2 changed files with 0 additions and 24 deletions

View File

@@ -35,7 +35,6 @@ char * BX_sindex (register char *, char *);
char * BX_rsindex (register char *, char *, char *, int);
char * BX_path_search (char *, char *);
char * BX_double_quote (const char *, const char *, char *);
char * quote_it (const char *, const char *, char *);
char * n_malloc_strcpy (char **, const char *, const char *, const char *, const int);
char * BX_malloc_str2cpy (char **, const char *, const char *);

View File

@@ -1284,29 +1284,6 @@ char *BX_double_quote (const char *str, const char *stuff, char *buffer)
return buffer;
}
char *quote_it (const char *str, const char *stuff, char *buffer)
{
register char c;
register int pos;
*buffer = 0;
for (pos = 0; (c = *str); str++)
{
if (stuff && strchr(stuff, c))
{
if (c == '%')
buffer[pos++] = '%';
else
buffer[pos++] = '\\';
}
else if (c == '%')
buffer[pos++] = '%';
buffer[pos++] = c;
}
buffer[pos] = '\0';
return buffer;
}
void BX_ircpanic (char *format, ...)
{
char buffer[3 * BIG_BUFFER_SIZE + 1];