From 9d6515ce3dbc2b4e854a1ac418555cc89bb2bb70 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 10 Feb 2020 21:48:37 +0100 Subject: Cleanup: remove the fragment store/discard and block discard hooks There is no obvious non-footgun use for those other than tallying statistics, which is now done by the data structures themselves. Signed-off-by: David Oberhollenzer --- include/sqfs/block_writer.h | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'include') diff --git a/include/sqfs/block_writer.h b/include/sqfs/block_writer.h index 421f8bd..678abd5 100644 --- a/include/sqfs/block_writer.h +++ b/include/sqfs/block_writer.h @@ -97,39 +97,6 @@ struct sqfs_block_hooks_t { void (*post_block_write)(void *user, const sqfs_block_t *block, sqfs_file_t *file); - /** - * @brief Gets called before storing a fragment in a fragment block. - * - * The function can modify the block before it is stored. - * - * @param user A user pointer. - * @param block The data chunk that is about to be merged into the - * fragment block. - */ - void (*pre_fragment_store)(void *user, sqfs_block_t *block); - - /** - * @brief Gets called if block deduplication managed to get - * rid of the data blocks of a file. - * - * @param user A user pointer. - * @param count The number of blocks that have been erased. - * @param bytes The number of bytes that have been erased. Includes - * potential padding before and after the end. - */ - void (*notify_blocks_erased)(void *user, size_t count, - sqfs_u64 bytes); - - /** - * @brief Gets called before throwing away a fragment that turned out - * to be a duplicate. - * - * @param user A user pointer. - * @param block The data chunk that is about to be merged into the - * fragment block. - */ - void (*notify_fragment_discard)(void *user, const sqfs_block_t *block); - /** * @brief Gets called before writing a block of padding bytes to disk. * -- cgit v1.2.3