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>

Ramkumar Ramachandra committed Jul 30, 2013 at 14:01 UTC 82aae5c1e550ef2244221c9badd69771115053a5
2 files changed -19
quote.c
-17
@@ -42,23 +42,6 @@ void sq_quote_buf(struct strbuf *dst, const char *src)
42 free(to_free);
43 }
44
45 -void sq_quote_print(FILE *stream, const char *src)
46 -{
47 - char c;
48 -
49 - fputc('\'', stream);
50 - while ((c = *src++)) {
51 - if (need_bs_quote(c)) {
52 - fputs("'\\", stream);
53 - fputc(c, stream);
54 - fputc('\'', stream);
55 - } else {
56 - fputc(c, stream);
57 - }
58 - }
59 - fputc('\'', stream);
60 -}
61 -
45 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen)
46 {
47 int i;
quote.h
-2
@@ -27,8 +27,6 @@ struct strbuf;
27 * excluding the final null regardless of the buffer size.
28 */
29
30 -extern void sq_quote_print(FILE *stream, const char *src);
31 -
30 extern void sq_quote_buf(struct strbuf *, const char *src);
31 extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
32