summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Sun Chao <sunchao9@huawei.com>2019-02-02 21:30:14 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-02-04 14:18:24 -0800
commit8822859363a86ade287c7deb07224af345a699f4 (patch)
tree4d2da91db60711009084a15f282a396c8b695d44
parentpack-redundant: delay creation of unique_objects (diff)
downloadtgif-8822859363a86ade287c7deb07224af345a699f4.tar.xz
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>
-rw-r--r--builtin/pack-redundant.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/pack-redundant.c b/builtin/pack-redundant.c
index f7dab0ec60..4a06f057dd 100644
--- a/builtin/pack-redundant.c
+++ b/builtin/pack-redundant.c
@@ -545,7 +545,6 @@ static void scan_alt_odb_packs(void)
alt->all_objects);
local = local->next;
}
- llist_sorted_difference_inplace(all_objects, alt->all_objects);
alt = alt->next;
}
}