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:
John Keeping
2015-08-14 12:47:21 +01:00
committed by Jason A. Donenfeld
parent 9c70c0bfdb
commit a420c7ce9b
3 changed files with 24 additions and 34 deletions

9
cgit.c
View File

@ -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)