diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-20 16:35:31 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-20 18:34:17 +0200 |
commit | ec70d9ffa6913c6643d25f9115830fd89b6ddfa7 (patch) | |
tree | 2cd2c6eae98fbb6d36adb6938ddcd30577ae992f /include | |
parent | d57efdfa0b7420dabf97335ffe3a8b391b9f54b3 (diff) |
Dead code removal, round #2
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r-- | include/fstree.h | 4 | ||||
-rw-r--r-- | include/highlevel.h | 34 |
2 files changed, 0 insertions, 38 deletions
diff --git a/include/fstree.h b/include/fstree.h index 4c68afe..f214501 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -16,8 +16,6 @@ #include <stddef.h> #include <stdio.h> -#include "sqfs/inode.h" - #include "str_table.h" #define FSTREE_XATTR_KEY_BUCKETS 31 @@ -122,8 +120,6 @@ struct tree_node_t { /* For the root node, this points to an empty string. */ char *name; - sqfs_inode_generic_t *inode; - /* A pointer to an extended attribute array or NULL if unused. diff --git a/include/highlevel.h b/include/highlevel.h index 5067c07..100fef4 100644 --- a/include/highlevel.h +++ b/include/highlevel.h @@ -26,14 +26,6 @@ #include <stdint.h> #include <stddef.h> -typedef struct { - sqfs_compressor_t *cmp; - data_reader_t *data; - sqfs_file_t *file; - sqfs_super_t super; - fstree_t fs; -} sqfs_reader_t; - /* High level helper function to serialize an entire file system tree to a squashfs inode table and directory table. @@ -50,23 +42,6 @@ int sqfs_serialize_fstree(sqfs_file_t *file, sqfs_super_t *super, fstree_t *fs, sqfs_compressor_t *cmp, sqfs_id_table_t *idtbl); /* - Convert a generic squashfs tree node to an fstree_t node. - - Prints error messages to stderr on failure. - */ -tree_node_t *tree_node_from_inode(sqfs_inode_generic_t *inode, - const sqfs_id_table_t *idtbl, - const char *name); - -/* - Restore a file system tree from a squashfs image. - - Returns 0 on success. Prints error messages to stderr on failure. - */ -int deserialize_fstree(fstree_t *out, sqfs_super_t *super, - sqfs_compressor_t *cmp, sqfs_file_t *file); - -/* Generate a squahfs xattr table from a file system tree. Returns 0 on success. Prints error messages to stderr on failure. @@ -85,15 +60,6 @@ int write_export_table(sqfs_file_t *file, fstree_t *fs, sqfs_super_t *super, /* Print out fancy statistics for squashfs packing tools */ void sqfs_print_statistics(sqfs_super_t *super, data_writer_stats_t *stats); -/* Open a squashfs file, extract all the information we may need and - construct datastructures we need to access its contents. - Returns 0 on success. Prints error messages to stderr on failure. -*/ -int sqfs_reader_open(sqfs_reader_t *rd, const char *filename); - -/* Cleanup after a successfull sqfs_reader_open */ -void sqfs_reader_close(sqfs_reader_t *rd); - void compressor_print_available(void); E_SQFS_COMPRESSOR compressor_get_default(void); |