From d07235a027e0c7ed2fee1aeb3bee8a858bf5ca58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Sun, 7 Sep 2014 09:03:32 +0200 Subject: strbuf: export strbuf_addchars() Move strbuf_addchars() to strbuf.c, where it belongs, and make it available for other callers. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- utf8.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index 0d20e0acb2..c55f3ba0bc 100644 --- a/utf8.c +++ b/utf8.c @@ -302,13 +302,6 @@ int is_utf8(const char *text) return 1; } -static void strbuf_addchars(struct strbuf *sb, int c, size_t n) -{ - strbuf_grow(sb, n); - memset(sb->buf + sb->len, c, n); - strbuf_setlen(sb, sb->len + n); -} - static void strbuf_add_indented_text(struct strbuf *buf, const char *text, int indent, int indent2) { -- cgit v1.2.3