From ea03a8e181261b5efda10376ff160dc8df084104 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sat, 15 Sep 2012 22:43:15 -0700 Subject: strbuf.c: mark a private file-scope symbol as static Also remove an unused function. Signed-off-by: Junio C Hamano --- strbuf.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'strbuf.c') diff --git a/strbuf.c b/strbuf.c index ec88266718..0510f76c24 100644 --- a/strbuf.c +++ b/strbuf.c @@ -445,8 +445,8 @@ static int is_rfc3986_unreserved(char ch) ch == '-' || ch == '_' || ch == '.' || ch == '~'; } -void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len, - int reserved) +static void strbuf_add_urlencode(struct strbuf *sb, const char *s, size_t len, + int reserved) { strbuf_grow(sb, len); while (len--) { @@ -465,15 +465,6 @@ void strbuf_addstr_urlencode(struct strbuf *sb, const char *s, strbuf_add_urlencode(sb, s, strlen(s), reserved); } -void strbuf_addf_ln(struct strbuf *sb, const char *fmt, ...) -{ - va_list ap; - va_start(ap, fmt); - strbuf_vaddf(sb, fmt, ap); - va_end(ap); - strbuf_addch(sb, '\n'); -} - int printf_ln(const char *fmt, ...) { int ret; -- cgit v1.2.3