Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Free commit and tag records beside their parsers
With the frees gone from shared.h, five page files need nothing else
from it, so they stop including it.
Diffstat (limited to '')
| -rw-r--r-- | source/shared.c | 24 |
1 file changed, 0 insertions, 24 deletions
diff --git a/source/shared.c b/source/shared.c index e3d2e58..7538c85 100644 --- a/source/shared.c +++ b/source/shared.c @@ -179,17 +179,6 @@ struct cgit_repo *cgit_get_repoinfo(const char *url) return NULL; } -void cgit_free_commitinfo(struct commitinfo *info) -{ - free(info->author); - free(info->author_email); - free(info->committer); - free(info->committer_email); - free(info->subject); - free(info->msg); - free(info); -} - char *cgit_trim_end(const char *str, char c) { size_t len; @@ -204,19 +193,6 @@ char *cgit_trim_end(const char *str, char c) return xstrndup(str, len); } -void cgit_free_taginfo(struct taginfo *info) -{ - // NULL is accepted because cgit_parse_tag returns it for a tag object - // that cannot be read, and a ref left holding that still gets freed - // along with the rest of its list. - if (!info) - return; - free(info->tagger); - free(info->tagger_email); - free(info->msg); - free(info); -} - void cgit_diff_tree_cb(struct diff_queue_struct *q, struct diff_options *options UNUSED, void *data) { filepair_fn fn = *(filepair_fn *)data; |
