From: Ramkumar Ramachandra Date: Tue, 30 Jul 2013 08:31:27 +0000 (+0530) Subject: quote: remove sq_quote_print() X-Git-Tag: v1.8.5-rc0~193^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/82aae5c1e550ef2244221c9badd69771115053a5?ds=inline;hp=--cc quote: remove sq_quote_print() Remove sq_quote_print() since it has no callers. Signed-off-by: Ramkumar Ramachandra Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- 82aae5c1e550ef2244221c9badd69771115053a5 diff --git a/quote.c b/quote.c index 9fd66c6fc5..45e3db12d5 100644 --- a/quote.c +++ b/quote.c @@ -42,23 +42,6 @@ void sq_quote_buf(struct strbuf *dst, const char *src) 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) { int i; diff --git a/quote.h b/quote.h index 6996ebda50..71dcc3aa02 100644 --- a/quote.h +++ b/quote.h @@ -27,8 +27,6 @@ struct strbuf; * 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_argv(struct strbuf *, const char **argv, size_t maxlen);