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 <tim.nord...@logicpd.com>

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

_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to