]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-shared.c
global: remove functionality we deprecated for cgit v1.0
[cgit.git] / ui-shared.c
index 8a786e0a3e27e63d1e6f19c28b85e0fc1c326673..a63dcb041d99cdf65d101bd98bcc19059e329d94 100644 (file)
@@ -977,8 +977,6 @@ static void print_header(void)
        } else {
                if (ctx.cfg.root_desc)
                        html_txt(ctx.cfg.root_desc);
-               else if (ctx.cfg.index_info)
-                       html_include(ctx.cfg.index_info);
        }
        html("</td></tr></table>\n");
 }
@@ -1127,7 +1125,7 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref,
 
        prefixlen = filename.len;
        for (f = cgit_snapshot_formats; f->suffix; f++) {
-               if (!(repo->snapshots & f->bit))
+               if (!(repo->snapshots & cgit_snapshot_format_bit(f)))
                        continue;
                strbuf_setlen(&filename, prefixlen);
                strbuf_addstr(&filename, f->suffix);