aboutsummaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2017-08-18 15:20:34 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-23 15:12:07 -0700
commitd6fe0036fd5e0cf7f51aa84381ebd321e898350a (patch)
treee3d0d3d4df44cc73a4b06bbdbc3dc52b1a720744 /sha1_file.c
parenta2551953b9619b285128c1e9cf35120fb7555d8f (diff)
downloadgit-d6fe0036fd5e0cf7f51aa84381ebd321e898350a.tar.gz
git-d6fe0036fd5e0cf7f51aa84381ebd321e898350a.tar.xz
pack: move find_sha1_pack()
Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 365b4af36..af3f1e5c5 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -1128,19 +1128,6 @@ static int find_pack_entry(const unsigned char *sha1, struct pack_entry *e)
return 0;
}
-struct packed_git *find_sha1_pack(const unsigned char *sha1,
- struct packed_git *packs)
-{
- struct packed_git *p;
-
- for (p = packs; p; p = p->next) {
- if (find_pack_entry_one(sha1, p))
- return p;
- }
- return NULL;
-
-}
-
static int sha1_loose_object_info(const unsigned char *sha1,
struct object_info *oi,
int flags)