From 7aaf8d1a521aca863c1ce69e9503ec2e6840037a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:33:35 -0700 Subject: Drop two resets of statics still at zero --- source/ui-diff.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/ui-diff.c') diff --git a/source/ui-diff.c b/source/ui-diff.c index 33a715d..0c6c288 100644 --- a/source/ui-diff.c +++ b/source/ui-diff.c @@ -445,7 +445,6 @@ static void print_diffstat(const struct object_id *old_oid, const struct object_ html("')"); } html("\n"); - max_changes = 0; cgit_diff_tree(old_oid, new_oid, inspect_filepair, prefix, ctx.qry.ignorews); // A change to no files would leave the table an empty frame. if (files) { @@ -719,7 +718,6 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, const char *prefi html_raw(items[i].body.buf, items[i].body.len); release_bodies(); } else { - item_idx = 0; cgit_diff_tree(old_rev_oid, new_rev_oid, filepair_cb, prefix, ctx.qry.ignorews); } if (!use_ssdiff) -- cgit