diff options
Diffstat (limited to 'lib/sqfs/block_writer.c')
-rw-r--r-- | lib/sqfs/block_writer.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/sqfs/block_writer.c b/lib/sqfs/block_writer.c index 94bd044..52ed3ac 100644 --- a/lib/sqfs/block_writer.c +++ b/lib/sqfs/block_writer.c @@ -165,8 +165,8 @@ void sqfs_block_writer_destroy(sqfs_block_writer_t *wr) int sqfs_block_writer_write(sqfs_block_writer_t *wr, sqfs_block_t *block, sqfs_u64 *location) { - sqfs_u64 offset, bytes; size_t start, count; + sqfs_u64 offset; sqfs_u32 out; int err; @@ -230,14 +230,6 @@ int sqfs_block_writer_write(sqfs_block_writer_t *wr, sqfs_block_t *block, wr->num_blocks = wr->file_start; } - if (wr->hooks != NULL && - wr->hooks->notify_blocks_erased != NULL) { - bytes = wr->file->get_size(wr->file) - wr->start; - - wr->hooks->notify_blocks_erased(wr->user_ptr, - count, bytes); - } - err = wr->file->truncate(wr->file, wr->start); if (err) return err; |