cmd: remove "want_layout" field
No commands use this any more. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:

committed by
Jason A. Donenfeld

parent
9c70c0bfdb
commit
a420c7ce9b
9
cgit.c
9
cgit.c
@ -736,16 +736,7 @@ static void process_request(void)
|
||||
if (cmd->pre)
|
||||
cmd->pre();
|
||||
|
||||
if (cmd->want_layout) {
|
||||
cgit_print_http_headers();
|
||||
cgit_print_docstart();
|
||||
cgit_print_pageheader();
|
||||
}
|
||||
|
||||
cmd->fn();
|
||||
|
||||
if (cmd->want_layout)
|
||||
cgit_print_docend();
|
||||
}
|
||||
|
||||
static int cmp_repos(const void *a, const void *b)
|
||||
|
Reference in New Issue
Block a user