Skip to content

Commit 8822859

Browse files
Sun Chaogitster
authored andcommitted
pack-redundant: delete redundant code
The objects in alt-odb are removed from `all_objects` twice in `load_all_objects` and `scan_alt_odb_packs`, remove it from the later function. Signed-off-by: Sun Chao <sunchao9@huawei.com> Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3011177 commit 8822859

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

builtin/pack-redundant.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ static void scan_alt_odb_packs(void)
545545
alt->all_objects);
546546
local = local->next;
547547
}
548-
llist_sorted_difference_inplace(all_objects, alt->all_objects);
549548
alt = alt->next;
550549
}
551550
}

0 commit comments

Comments
 (0)