diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-11 21:17:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-12 01:06:09 -0800 |
commit | 356521ab22fb76e17aa8dc9993ff81fade49e11c (patch) | |
tree | b0d8b212d9c268f7bbf825bbe05f753fd0412bb3 | |
parent | 42b3b0061478f262118036286455a8f09a0d3fff (diff) | |
download | git-356521ab22fb76e17aa8dc9993ff81fade49e11c.tar.gz git-356521ab22fb76e17aa8dc9993ff81fade49e11c.tar.xz |
sha1_file.c: remove unused function
has_pack_file() is not used anywhere.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | cache.h | 1 | ||||
-rw-r--r-- | sha1_file.c | 8 |
2 files changed, 0 insertions, 9 deletions
@@ -683,7 +683,6 @@ extern int has_sha1_pack(const unsigned char *sha1); 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 63981fb3f..7086760db 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2458,14 +2458,6 @@ int has_pack_index(const unsigned char *sha1) 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; |