Skip to content

Commit

Permalink
sha1_file.c: remove unused function
Browse files Browse the repository at this point in the history
has_pack_file() is not used anywhere.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Jan 12, 2010
1 parent 42b3b00 commit 356521a
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion cache.h
Original file line number Diff line number Diff line change
@@ -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];
8 changes: 0 additions & 8 deletions sha1_file.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 356521a

Please sign in to comment.