cache-tree.c: make cache_tree_find() static
This function is not used by any other file. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nanako Shiraishi committed
Jul 16, 2008 at 19:42 UTC
7ba04d9f3741abd5788ff713b6a16351cbf3773a
2 files changed
+1
-3
cache-tree.c
+1
-1
@@ -507,7 +507,7 @@ struct cache_tree *cache_tree_read(const char *buffer, unsigned long size)
507
return read_one(&buffer, &size);
508
}
509
510
-struct cache_tree *cache_tree_find(struct cache_tree *it, const char *path)
510
+static struct cache_tree *cache_tree_find(struct cache_tree *it, const char *path)
511
{
512
while (*path) {
513
const char *slash;
cache-tree.h
-2
@@ -28,8 +28,6 @@ struct cache_tree *cache_tree_read(const char *buffer, unsigned long size);
28
int cache_tree_fully_valid(struct cache_tree *);
29
int cache_tree_update(struct cache_tree *, struct cache_entry **, int, int, int);
30
31
-struct cache_tree *cache_tree_find(struct cache_tree *, const char *);
32
-
31
#define WRITE_TREE_UNREADABLE_INDEX (-1)
32
#define WRITE_TREE_UNMERGED_INDEX (-2)
33
#define WRITE_TREE_PREFIX_ERROR (-3)