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>
maint
Patrick Steinhardt 2025-07-17 06:56:38 +02:00 committed by Junio C Hamano
parent f2c40e51b2
commit 83439299f1
2 changed files with 7 additions and 14 deletions

View File

@ -1318,13 +1318,13 @@ int read_pack_header(int fd, struct pack_header *header)
return 0; return 0;
} }


int for_each_file_in_obj_subdir(unsigned int subdir_nr, static int for_each_file_in_obj_subdir(unsigned int subdir_nr,
struct strbuf *path, struct strbuf *path,
const struct git_hash_algo *algop, const struct git_hash_algo *algop,
each_loose_object_fn obj_cb, each_loose_object_fn obj_cb,
each_loose_cruft_fn cruft_cb, each_loose_cruft_fn cruft_cb,
each_loose_subdir_fn subdir_cb, each_loose_subdir_fn subdir_cb,
void *data) void *data)
{ {
size_t origlen, baselen; size_t origlen, baselen;
DIR *dir; DIR *dir;

View File

@ -86,13 +86,6 @@ typedef int each_loose_cruft_fn(const char *basename,
typedef int each_loose_subdir_fn(unsigned int nr, typedef int each_loose_subdir_fn(unsigned int nr,
const char *path, const char *path,
void *data); void *data);
int for_each_file_in_obj_subdir(unsigned int subdir_nr,
struct strbuf *path,
const struct git_hash_algo *algo,
each_loose_object_fn obj_cb,
each_loose_cruft_fn cruft_cb,
each_loose_subdir_fn subdir_cb,
void *data);
int for_each_loose_file_in_objdir(const char *path, int for_each_loose_file_in_objdir(const char *path,
each_loose_object_fn obj_cb, each_loose_object_fn obj_cb,
each_loose_cruft_fn cruft_cb, each_loose_cruft_fn cruft_cb,