Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ui-shared.c b/ui-shared.c index c50b3e6..7c7a537 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -780,18 +780,6 @@ static int emit_css_link(struct string_list_item *s, void *arg) return 0; } -static int emit_js_link(struct string_list_item *s, void *arg) -{ - html("<script type='text/javascript' src='"); - if (s) - html_attr(s->string); - else - html_attr((const char *)arg); - html("'></script>\n"); - - return 0; -} - void cgit_print_docstart(void) { char *host = cgit_hosturl(); @@ -817,11 +805,6 @@ void cgit_print_docstart(void) else emit_css_link(NULL, "/cgit.css"); - if (ctx.cfg.js.items) - for_each_string_list(&ctx.cfg.js, emit_js_link, NULL); - else - emit_js_link(NULL, "/cgit.js"); - if (ctx.cfg.favicon) { html("<link rel='shortcut icon' href='"); html_attr(ctx.cfg.favicon); |