diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-07-17 06:56:38 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-16 22:16:16 -0700 |
| commit | 83439299f1326c7471f5c7595c96d14b65a71879 (patch) | |
| tree | 298dd93c4ae9eeb57372ef486081f17fb55b20ff /object-file.c | |
| parent | object-file: inline `for_each_loose_file_in_objdir_buf()` (diff) | |
| download | git-83439299f1326c7471f5c7595c96d14b65a71879.tar.gz git-83439299f1326c7471f5c7595c96d14b65a71879.zip | |
object-file: remove declaration for `for_each_file_in_obj_subdir()`
The function `for_each_file_in_obj_subdir()` is declared in our headers,
but it is not used anywhere else than in the corresponding code file
itself. Drop the declaration and mark the function as file-local.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-file.c')
| -rw-r--r-- | object-file.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/object-file.c b/object-file.c index 5a936f1714..bd93f17dcf 100644 --- a/object-file.c +++ b/object-file.c @@ -1318,13 +1318,13 @@ int read_pack_header(int fd, struct pack_header *header) return 0; } -int for_each_file_in_obj_subdir(unsigned int subdir_nr, - struct strbuf *path, - const struct git_hash_algo *algop, - each_loose_object_fn obj_cb, - each_loose_cruft_fn cruft_cb, - each_loose_subdir_fn subdir_cb, - void *data) +static int for_each_file_in_obj_subdir(unsigned int subdir_nr, + struct strbuf *path, + const struct git_hash_algo *algop, + each_loose_object_fn obj_cb, + each_loose_cruft_fn cruft_cb, + each_loose_subdir_fn subdir_cb, + void *data) { size_t origlen, baselen; DIR *dir; |
