X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fsparse.c;fp=src%2Fsparse.c;h=8d1ff9071ae5a96463b01321325a0b779b547060;hb=ea9e2d8d8ed26b201c0bef9136014216983d3e8f;hp=f2d9f58bf407ed642d66ffa1373e211e1fd6f927;hpb=39e5d9182c02b0a5204d406794640ef6e71bdcb8;p=chaz%2Ftar 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) {