From ea9e2d8d8ed26b201c0bef9136014216983d3e8f Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 25 Jun 2006 12:45:16 +0000 Subject: [PATCH] (sparse_file_p): Remove --- src/common.h | 1 - src/sparse.c | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/common.h b/src/common.h index 4f1ac6a..d78d3d7 100644 --- a/src/common.h +++ b/src/common.h @@ -710,7 +710,6 @@ int sys_exec_info_script (const char **archive_name, int volume_number); void report_difference (struct tar_stat_info *st, const char *message, ...); /* Module sparse.c */ -bool sparse_file_p (struct tar_stat_info *st); bool sparse_member_p (struct tar_stat_info *st); bool sparse_fixup_header (struct tar_stat_info *st); enum dump_status sparse_dump_file (int, struct tar_stat_info *st); diff --git a/src/sparse.c b/src/sparse.c index f2d9f58..8d1ff90 100644 --- a/src/sparse.c +++ b/src/sparse.c @@ -409,15 +409,6 @@ sparse_dump_file (int fd, struct tar_stat_info *st) return (tar_sparse_done (&file) && rc) ? dump_status_ok : dump_status_short; } -/* Returns true if the file represented by stat is a sparse one */ -bool -sparse_file_p (struct tar_stat_info *st) -{ - return (ST_NBLOCKS (st->stat) - < (st->stat.st_size / ST_NBLOCKSIZE - + (st->stat.st_size % ST_NBLOCKSIZE != 0))); -} - bool sparse_member_p (struct tar_stat_info *st) { -- 2.44.0