about summary refs log tree commit diff stats
path: root/cgit.c
diff options
context:
space:
mode:
authorJohn Keeping2015-08-14 12:47:21 +0100
committerJason A. Donenfeld2015-08-14 15:46:51 +0200
commita420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20 (patch)
tree4a85364eafb77706b78585fed09e3658d991fa7c /cgit.c
parenttree: move layout into page function (diff)
downloadcgit-a420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20.tar.gz
cgit-a420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20.zip
cmd: remove "want_layout" field
No commands use this any more.

Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/cgit.c b/cgit.c index 3a97563..7271412 100644 --- a/cgit.c +++ b/cgit.c
@@ -736,16 +736,7 @@ static void process_request(void)
736 if (cmd->pre) 736 if (cmd->pre)
737 cmd->pre(); 737 cmd->pre();
738 738
739 if (cmd->want_layout) {
740 cgit_print_http_headers();
741 cgit_print_docstart();
742 cgit_print_pageheader();
743 }
744
745 cmd->fn(); 739 cmd->fn();
746
747 if (cmd->want_layout)
748 cgit_print_docend();
749} 740}
750 741
751static int cmp_repos(const void *a, const void *b) 742static int cmp_repos(const void *a, const void *b)