Skip to content

Commit 8343929

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f2c40e5 commit 8343929

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

object-file.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,13 +1318,13 @@ int read_pack_header(int fd, struct pack_header *header)
13181318
return 0;
13191319
}
13201320

1321-
int for_each_file_in_obj_subdir(unsigned int subdir_nr,
1322-
struct strbuf *path,
1323-
const struct git_hash_algo *algop,
1324-
each_loose_object_fn obj_cb,
1325-
each_loose_cruft_fn cruft_cb,
1326-
each_loose_subdir_fn subdir_cb,
1327-
void *data)
1321+
static int for_each_file_in_obj_subdir(unsigned int subdir_nr,
1322+
struct strbuf *path,
1323+
const struct git_hash_algo *algop,
1324+
each_loose_object_fn obj_cb,
1325+
each_loose_cruft_fn cruft_cb,
1326+
each_loose_subdir_fn subdir_cb,
1327+
void *data)
13281328
{
13291329
size_t origlen, baselen;
13301330
DIR *dir;

object-file.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,6 @@ typedef int each_loose_cruft_fn(const char *basename,
8686
typedef int each_loose_subdir_fn(unsigned int nr,
8787
const char *path,
8888
void *data);
89-
int for_each_file_in_obj_subdir(unsigned int subdir_nr,
90-
struct strbuf *path,
91-
const struct git_hash_algo *algo,
92-
each_loose_object_fn obj_cb,
93-
each_loose_cruft_fn cruft_cb,
94-
each_loose_subdir_fn subdir_cb,
95-
void *data);
9689
int for_each_loose_file_in_objdir(const char *path,
9790
each_loose_object_fn obj_cb,
9891
each_loose_cruft_fn cruft_cb,

0 commit comments

Comments
 (0)