aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-06-13 23:00:51 -0700
committerJunio C Hamano <gitster@pobox.com>2008-06-13 23:00:51 -0700
commit6483925999cde47e5108414ac3f57760394ee2d2 (patch)
treeb44b7d8905c1f1239243d9a02f27cc04ff113164 /cache.h
parent43d60d2e59cb466717290984becc8687fc632ca1 (diff)
downloadgit-6483925999cde47e5108414ac3f57760394ee2d2.tar.gz
git-6483925999cde47e5108414ac3f57760394ee2d2.tar.xz
sha1_file.c: dead code removal
write_sha1_from_fd() and write_sha1_to_fd() were dead code nobody called, neither the latter's helper repack_object() was. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/cache.h b/cache.h
index 0a63c0eae..23f3b9233 100644
--- a/cache.h
+++ b/cache.h
@@ -536,9 +536,6 @@ extern int force_object_loose(const unsigned char *sha1, time_t mtime);
extern int check_sha1_signature(const unsigned char *sha1, void *buf, unsigned long size, const char *type);
-extern int write_sha1_from_fd(const unsigned char *sha1, int fd, char *buffer,
- size_t bufsize, size_t *bufposn);
-extern int write_sha1_to_fd(int fd, const unsigned char *sha1);
extern int move_temp_to_file(const char *tmpfile, const char *filename);
extern int has_sha1_pack(const unsigned char *sha1, const char **ignore);