diff options
author | Ramkumar Ramachandra <artagnon@gmail.com> | 2013-07-30 10:31:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-30 17:13:38 +0200 |
commit | 82aae5c1e550ef2244221c9badd69771115053a5 (patch) | |
tree | 4ecd3d1d1be9087cb7f2e696c622faaf4061e5e4 /quote.c | |
parent | tar-tree: remove dependency on sq_quote_print() (diff) | |
download | git-82aae5c1e550ef2244221c9badd69771115053a5.tar.xz git-82aae5c1e550ef2244221c9badd69771115053a5.zip |
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>
Diffstat (limited to 'quote.c')
-rw-r--r-- | quote.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -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; |