quote: remove sq_quote_print()
Remove sq_quote_print() since it has no callers. Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
7da2f28c6b
commit
82aae5c1e5
17
quote.c
17
quote.c
@ -42,23 +42,6 @@ void sq_quote_buf(struct strbuf *dst, const char *src)
|
|||||||
free(to_free);
|
free(to_free);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sq_quote_print(FILE *stream, const char *src)
|
|
||||||
{
|
|
||||||
char c;
|
|
||||||
|
|
||||||
fputc('\'', stream);
|
|
||||||
while ((c = *src++)) {
|
|
||||||
if (need_bs_quote(c)) {
|
|
||||||
fputs("'\\", stream);
|
|
||||||
fputc(c, stream);
|
|
||||||
fputc('\'', stream);
|
|
||||||
} else {
|
|
||||||
fputc(c, stream);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
fputc('\'', stream);
|
|
||||||
}
|
|
||||||
|
|
||||||
void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen)
|
void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
2
quote.h
2
quote.h
@ -27,8 +27,6 @@ struct strbuf;
|
|||||||
* excluding the final null regardless of the buffer size.
|
* excluding the final null regardless of the buffer size.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern void sq_quote_print(FILE *stream, const char *src);
|
|
||||||
|
|
||||||
extern void sq_quote_buf(struct strbuf *, const char *src);
|
extern void sq_quote_buf(struct strbuf *, const char *src);
|
||||||
extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
|
extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user