Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Allocate formatted strings with git's xstrfmt
Diffstat (limited to 'source/html.c')
| -rw-r--r-- | source/html.c | 12 |
1 file changed, 0 insertions, 12 deletions
diff --git a/source/html.c b/source/html.c index 7d2e668..ec82ff4 100644 --- a/source/html.c +++ b/source/html.c @@ -126,18 +126,6 @@ char *cgit_fmt(const char *format, ...) return buf[slot]; } -char *cgit_fmtalloc(const char *format, ...) -{ - struct strbuf sb = STRBUF_INIT; - va_list args; - - va_start(args, format); - strbuf_vaddf(&sb, format, args); - va_end(args); - - return strbuf_detach(&sb, NULL); -} - void html_flush(void) { size_t len = out_len; |
