From: Nanako Shiraishi Date: Wed, 16 Jul 2008 10:42:10 +0000 (+0900) Subject: cache-tree.c: make cache_tree_find() static X-Git-Tag: v1.6.0-rc0~48 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7ba04d9f3741abd5788ff713b6a16351cbf3773a;p=git.git cache-tree.c: make cache_tree_find() static This function is not used by any other file. Signed-off-by: Nanako Shiraishi Signed-off-by: Junio C Hamano --- diff --git a/cache-tree.c b/cache-tree.c index 73cb34070..5f8ee87bb 100644 --- a/cache-tree.c +++ b/cache-tree.c @@ -507,7 +507,7 @@ struct cache_tree *cache_tree_read(const char *buffer, unsigned long size) return read_one(&buffer, &size); } -struct cache_tree *cache_tree_find(struct cache_tree *it, const char *path) +static struct cache_tree *cache_tree_find(struct cache_tree *it, const char *path) { while (*path) { const char *slash; diff --git a/cache-tree.h b/cache-tree.h index 44aad426d..cf8b79087 100644 --- a/cache-tree.h +++ b/cache-tree.h @@ -28,8 +28,6 @@ struct cache_tree *cache_tree_read(const char *buffer, unsigned long size); int cache_tree_fully_valid(struct cache_tree *); int cache_tree_update(struct cache_tree *, struct cache_entry **, int, int, int); -struct cache_tree *cache_tree_find(struct cache_tree *, const char *); - #define WRITE_TREE_UNREADABLE_INDEX (-1) #define WRITE_TREE_UNMERGED_INDEX (-2) #define WRITE_TREE_PREFIX_ERROR (-3)