X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/0cbb50841ac82e08e715bbff614f96c7d5ba22fa..ef0c6aadf70e33ef63f0a68ca16338a49d0a3f1f:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index f18b2c7..5e03a7a 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -611,14 +611,8 @@ char *hc(struct cgit_cmd *cmd, const char *page) return (strcmp(cmd ? cmd->name : fallback_cmd, page) ? NULL : "active"); } -void cgit_print_pageheader(struct cgit_context *ctx) +static void print_header(struct cgit_context *ctx) { - struct cgit_cmd *cmd = cgit_get_cmd(ctx); - - if (!cmd && ctx->repo) - fallback_cmd = "summary"; - - html("
"); html("\n"); html("\n"); html("