ui-shared: remove toggle_ssdiff arg to cgit_diff_link() This argument is never used with a value other than zero, so remove it and simplify the code. Signed-off-by: John Keeping <john@keeping.me.uk>
John Keeping john@keeping.me.uk
Sun, 05 Oct 2014 10:59:03 +0100
4 files changed,
8 insertions(+),
8 deletions(-)
M
ui-commit.c
→
ui-commit.c
@@ -99,7 +99,7 @@ }
cgit_commit_link(tmp2, NULL, NULL, ctx.qry.head, tmp, prefix); html(" ("); cgit_diff_link("diff", NULL, NULL, ctx.qry.head, hex, - sha1_to_hex(p->item->object.sha1), prefix, 0); + sha1_to_hex(p->item->object.sha1), prefix); html(")</td></tr>"); parents++; }
M
ui-diff.c
→
ui-diff.c
@@ -97,7 +97,7 @@ html("]</span>");
} htmlf("</td><td class='%s'>", class); cgit_diff_link(info->new_path, NULL, NULL, ctx.qry.head, ctx.qry.sha1, - ctx.qry.sha2, info->new_path, 0); + ctx.qry.sha2, info->new_path); if (info->status == DIFF_STATUS_COPIED || info->status == DIFF_STATUS_RENAMED) { htmlf(" (%s from ", info->status == DIFF_STATUS_COPIED ? "copied" : "renamed");@@ -175,7 +175,7 @@ int i;
html("<div class='diffstat-header'>"); cgit_diff_link("Diffstat", NULL, NULL, ctx.qry.head, ctx.qry.sha1, - ctx.qry.sha2, NULL, 0); + ctx.qry.sha2, NULL); if (prefix) { html(" (limited to '"); html_txt(prefix);