From c9429aeece3b8642de637f7a21e68046bd690658 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 23 Feb 2020 15:45:34 +0100 Subject: Remove the sqfs_inode_copy function With unified payload size counters, copying an inode is now trivial. Signed-off-by: David Oberhollenzer --- include/sqfs/inode.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include/sqfs') diff --git a/include/sqfs/inode.h b/include/sqfs/inode.h index 0323bef..a6e7111 100644 --- a/include/sqfs/inode.h +++ b/include/sqfs/inode.h @@ -543,24 +543,6 @@ size_t sqfs_inode_get_file_block_count(const sqfs_inode_generic_t *inode) return inode->payload_bytes_used / sizeof(sqfs_u32); } -/** - * @brief Create a deep copy of a generic inode. - * - * The @ref sqfs_inode_generic_t structure contains inlined fields that have a - * size depending on the inode data and pointers to the inlined fields. This - * helper function calculates the actual size of the structure in memory, makes - * a copy and propperly sets up the pointers. - * - * @param src The inode to copy. - * @param copy Returns a pointer to the copy on success. Can be released with a - * single free call. - * - * @return Zero on success, an @ref SQFS_ERROR_CORRUPTED if the node has - * an unknown type set. - */ -SQFS_API int sqfs_inode_copy(const sqfs_inode_generic_t *src, - sqfs_inode_generic_t **copy); - /** * @brief Get the extended attribute index of an inode * -- cgit v1.2.3