summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-19 11:38:39 -0700
committerJunio C Hamano <gitster@pobox.com>2014-09-19 11:38:39 -0700
commit56feed1c7641bbf7920efe6607c6a04309073baa (patch)
tree74ec5c25bd752dfe55be3a4c13147af5c5dfbfc1 /utf8.c
parent9ee9c9d068d841908c7022aad566096be8a439a9 (diff)
parent415792edf51b2f87a58a942016a24a2e86a4218b (diff)
downloadgit-56feed1c7641bbf7920efe6607c6a04309073baa.tar.gz
Merge branch 'rs/export-strbuf-addchars'
Code clean-up. * rs/export-strbuf-addchars: strbuf: use strbuf_addchars() for adding a char multiple times strbuf: export strbuf_addchars()
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/utf8.c b/utf8.c
index 401a6a509e..4541777949 100644
--- a/utf8.c
+++ b/utf8.c
@@ -239,13 +239,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)
{