]> Kevux Git Server - rit/commit
odb: drop unused `for_each_{loose,packed}_object()` functions
authorPatrick Steinhardt <ps@pks.im>
Mon, 26 Jan 2026 09:51:30 +0000 (10:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jan 2026 16:26:08 +0000 (08:26 -0800)
commit3565faf28c2059c6260d53ac71a303b1c04b0a7b
treee2340a2664b00248b9a119700318ca30ae50fff0
parent7a8582c82ce896d89bbcc1d91d8b5bdc31902416
odb: drop unused `for_each_{loose,packed}_object()` functions

We have converted all callers of `for_each_loose_object()` and
`for_each_packed_object()` to use their new replacement functions
instead. We can thus remove them now.

Do so and inline `packfile_store_for_each_object_internal()` now that it
only has a single callsite again. This makes it a bit easier to follow
the callback indirection that is happening there.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
object-file.h
packfile.c
packfile.h