Skip to content

Commit 82aae5c

Browse files
artagnongitster
authored andcommitted
quote: remove sq_quote_print()
Remove sq_quote_print() since it has no callers. Signed-off-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7da2f28 commit 82aae5c

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

Diff for: quote.c

-17
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@ void sq_quote_buf(struct strbuf *dst, const char *src)
4242
free(to_free);
4343
}
4444

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-
6245
void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen)
6346
{
6447
int i;

Diff for: quote.h

-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ struct strbuf;
2727
* excluding the final null regardless of the buffer size.
2828
*/
2929

30-
extern void sq_quote_print(FILE *stream, const char *src);
31-
3230
extern void sq_quote_buf(struct strbuf *, const char *src);
3331
extern void sq_quote_argv(struct strbuf *, const char **argv, size_t maxlen);
3432

0 commit comments

Comments
 (0)