summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 42b3b00)
raw | patch | inline | side by side (parent: 42b3b00)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Jan 2010 05:17:56 +0000 (21:17 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Jan 2010 09:06:09 +0000 (01:06 -0800) |
has_pack_file() is not used anywhere.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | patch | blob | history | |
sha1_file.c | patch | blob | history |
index e7bb6b795e626e9caf30061310ba00eb2deaae28..90edb5b261e69b5f6e6d0ceda6c40cc00b951eac 100644 (file)
--- a/cache.h
+++ b/cache.h
extern int has_sha1_file(const unsigned char *sha1);
extern int has_loose_object_nonlocal(const unsigned char *sha1);
-extern int has_pack_file(const unsigned char *sha1);
extern int has_pack_index(const unsigned char *sha1);
extern const signed char hexval_table[256];
diff --git a/sha1_file.c b/sha1_file.c
index 63981fb3fd9cfa6cca4126eba5a964b449c62444..7086760dbedac89075f53ebbe1539b6ebbaa9b06 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
return 1;
}
-int has_pack_file(const unsigned char *sha1)
-{
- struct stat st;
- if (stat(sha1_pack_name(sha1), &st))
- return 0;
- return 1;
-}
-
int has_sha1_pack(const unsigned char *sha1)
{
struct pack_entry e;