aboutsummaryrefslogtreecommitdiffstats
path: root/object-file.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-07-17 06:56:37 +0200
committerJunio C Hamano <gitster@pobox.com>2025-07-16 22:16:16 -0700
commitf2c40e51b235b3814475d3988782ae5dfcae8752 (patch)
tree80c0e21173392c0173955e9781106462d821a94b /object-file.h
parentobject-file: get rid of `the_repository` when writing objects (diff)
downloadgit-f2c40e51b235b3814475d3988782ae5dfcae8752.tar.gz
git-f2c40e51b235b3814475d3988782ae5dfcae8752.zip
object-file: inline `for_each_loose_file_in_objdir_buf()`
The function `for_each_loose_file_in_objdir_buf()` is declared in our headers, but it is not used anywhere else than in the corresponding code file itself. Drop the declaration and inline the function into its only caller. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.h')
-rw-r--r--object-file.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/object-file.h b/object-file.h
index 622e2b2bb7..eca323f973 100644
--- a/object-file.h
+++ b/object-file.h
@@ -98,11 +98,6 @@ int for_each_loose_file_in_objdir(const char *path,
each_loose_cruft_fn cruft_cb,
each_loose_subdir_fn subdir_cb,
void *data);
-int for_each_loose_file_in_objdir_buf(struct strbuf *path,
- each_loose_object_fn obj_cb,
- each_loose_cruft_fn cruft_cb,
- each_loose_subdir_fn subdir_cb,
- void *data);
/*
* Iterate over all accessible loose objects without respect to