]> git.ipfire.org Git - thirdparty/git.git/commit
odb: drop unused `for_each_{loose,packed}_object()` functions
authorPatrick Steinhardt <ps@pks.im>
Thu, 15 Jan 2026 11:04:43 +0000 (12:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2026 13:50:29 +0000 (05:50 -0800)
commite5901df2f3625d475f3b0d3e89f34c3ef2cf91fc
tree1181013a9d2ca1e6bd892599ff384e71524efef3
parent9a9a207cb3e62b199cb2b53c288846b5ce79115c
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