From c106a290ed07fa89b39072925b1a2258071511a8 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 20 Sep 2019 03:52:49 +0200 Subject: Large round of dead code removal Remove all the library functions that no longer have any users. Signed-off-by: David Oberhollenzer --- include/fstree.h | 6 ------ include/highlevel.h | 3 --- include/util.h | 7 ------- 3 files changed, 16 deletions(-) (limited to 'include') diff --git a/include/fstree.h b/include/fstree.h index a93fd7c..4c68afe 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -280,18 +280,12 @@ void fstree_gen_file_list(fstree_t *fs); */ char *fstree_get_path(tree_node_t *node); -/* get a struct stat from a tree node */ -void fstree_node_stat(fstree_t *fs, tree_node_t *node, struct stat *sb); - /* ASCIIbetically sort a linked list of tree nodes */ tree_node_t *tree_node_list_sort(tree_node_t *head); /* ASCIIbetically sort all sub directories recursively */ void tree_node_sort_recursive(tree_node_t *root); -/* resolve a path to a tree node. Returns NULL on failure and sets errno */ -tree_node_t *fstree_node_from_path(fstree_t *fs, const char *path); - /* If the environment variable SOURCE_DATE_EPOCH is set to a parsable number that fits into an unsigned 32 bit value, return its value. Otherwise, diff --git a/include/highlevel.h b/include/highlevel.h index 6d4b4e6..5067c07 100644 --- a/include/highlevel.h +++ b/include/highlevel.h @@ -104,9 +104,6 @@ int compressor_cfg_init_options(sqfs_compressor_config_t *cfg, void compressor_print_help(E_SQFS_COMPRESSOR id); -int xattr_reader_restore_node(sqfs_xattr_reader_t *xr, fstree_t *fs, - tree_node_t *node, uint32_t xattr); - sqfs_inode_generic_t *tree_node_to_inode(fstree_t *fs, sqfs_id_table_t *idtbl, tree_node_t *node); diff --git a/include/util.h b/include/util.h index 26c54e2..ab57c04 100644 --- a/include/util.h +++ b/include/util.h @@ -57,13 +57,6 @@ int write_data(const char *errstr, int fd, const void *data, size_t size); SQFS_INTERNAL int read_data(const char *errstr, int fd, void *buffer, size_t size); -/* - Similar to read_data but wrapps pread() instead of read(). -*/ -SQFS_INTERNAL -int read_data_at(const char *errstr, off_t location, - int fd, void *buffer, size_t size); - /* A common implementation of the '--version' command line flag. -- cgit v1.2.3