Diffstat (limited to 'ui-tree.c')
| -rw-r--r-- | ui-tree.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -103,7 +103,6 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, { char *name; char *fullpath; - char *class; enum object_type type; unsigned long size = 0; @@ -136,12 +135,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head, curr_rev, fullpath); } else { - class = strrchr(name, '.'); - if (class != NULL) { - class = fmt("ls-blob %s", class + 1); - } else - class = "ls-blob"; - cgit_tree_link(name, NULL, class, ctx.qry.head, + cgit_tree_link(name, NULL, "ls-blob", ctx.qry.head, curr_rev, fullpath); } htmlf("</td><td class='ls-size'>%li</td>", size); |