[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH v2 6/8] ui-repolist: Remove assignment of section to repolist_ctx
From: Tim Nordell <tim.nordell () logicpd ! com>
Date: 2016-03-04 23:30:14
Message-ID: 1457134214-7795-1-git-send-email-tim.nordell () logicpd ! com
[Download RAW message or body]
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.nordell@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic