From 8461bf5d84dc103f5d6037fd537e0e421f2292cb Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:16:39 -0700 Subject: Drop the hidden form fields' unused page argument --- source/ui-shared.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index b34861d..3116b7f 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -422,7 +422,7 @@ static void print_header(void) // Switching branch means leaving the pinned commit behind, so // the id fields stay out of the form. ctx.qry.oid = ctx.qry.oid2 = NULL; - cgit_add_hidden_formfields(0, 1, ctx.qry.page); + cgit_add_hidden_formfields(0, 1); ctx.qry.oid = oid; ctx.qry.oid2 = oid2; html("\n"); html_option("grep", "log msg", ctx.qry.grep); html_option("author", "author", ctx.qry.grep); @@ -1597,7 +1597,7 @@ void cgit_print_clone_row(const char *url, int colspan) free(fallback); } -void cgit_add_hidden_formfields(int incl_head, int incl_search, const char *page UNUSED) +void cgit_add_hidden_formfields(int incl_head, int incl_search) { if (incl_head && head_is_named(ctx.qry.head)) html_hidden("h", ctx.qry.head); -- cgit