From mboxrd@z Thu Jan 1 00:00:00 1970 From: tim.nordell at logicpd.com (Tim Nordell) Date: Fri, 4 Mar 2016 17:30:14 -0600 Subject: [PATCH v2 6/8] ui-repolist: Remove assignment of section to repolist_ctx In-Reply-To: <1457133901-12998-1-git-send-email-tim.nordell@logicpd.com> References: <1457133901-12998-1-git-send-email-tim.nordell@logicpd.com> Message-ID: <1457134214-7795-1-git-send-email-tim.nordell@logicpd.com> There is now only one user of this, emitting a html_section, and this gets the repository passed in (which also contains a link to the section heading). Signed-off-by: Tim Nordell diff --git a/ui-repolist.c b/ui-repolist.c index df2dc92..fab589e 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -273,7 +273,6 @@ struct repolist_ctx { int columns; int sorted; int hits; - const char *section; const char *last_section; }; @@ -398,7 +397,6 @@ void cgit_print_repolist(void) continue; if (c->hits > ctx.qry.ofs + ctx.cfg.max_repo_count) continue; - c->section = ctx.repo->section; if (should_emit_section(&repolist_ctx, ctx.repo)) html_section(ctx.repo, c->columns); html_repository(ctx.repo, repolist_ctx.sorted); -- 2.4.9