diff --git a/csum-file.c b/csum-file.c index 9558177a11..2bbedfa36e 100644 --- a/csum-file.c +++ b/csum-file.c @@ -101,15 +101,6 @@ int finalize_hashfile(struct hashfile *f, unsigned char *result, return fd; } -void discard_hashfile(struct hashfile *f) -{ - if (0 <= f->check_fd) - close(f->check_fd); - if (0 <= f->fd) - close(f->fd); - free_hashfile(f); -} - void hashwrite(struct hashfile *f, const void *buf, uint32_t count) { while (count) { diff --git a/csum-file.h b/csum-file.h index a9b390d336..1d762a64b0 100644 --- a/csum-file.h +++ b/csum-file.h @@ -74,7 +74,6 @@ void free_hashfile(struct hashfile *f); * Finalize the hashfile by flushing data to disk and free'ing it. */ int finalize_hashfile(struct hashfile *, unsigned char *, enum fsync_component, unsigned int); -void discard_hashfile(struct hashfile *); void hashwrite(struct hashfile *, const void *, uint32_t); void hashflush(struct hashfile *f); void crc32_begin(struct hashfile *);