diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-24 15:59:54 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-24 16:05:01 +0100 |
commit | c8d234ddcf42f4a2d3e30122877d792fabd92f68 (patch) | |
tree | 630ecf78f2f22aa1e2bbc6631d5179eab8e52c2e /include/sqfs | |
parent | 58c012f6fa5bbda88a849b7ecf93519400ee0a43 (diff) |
Cleanup: remove the entirely redundant sqfs_has_xattr function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs')
-rw-r--r-- | include/sqfs/xattr.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/include/sqfs/xattr.h b/include/sqfs/xattr.h index 654fe9c..0f74c94 100644 --- a/include/sqfs/xattr.h +++ b/include/sqfs/xattr.h @@ -171,34 +171,12 @@ SQFS_API const char *sqfs_get_xattr_prefix(E_SQFS_XATTR_TYPE id); * prefix of the key string and storing an enumerator instead to save memory. * * This function takes a key and finds the enumerator value that represents - * its prefix. - * - * This function will return a failure value to indicate that the given prefix - * isn't supported. Another function called @ref sqfs_has_xattr is provided to - * explicitly check if a prefix is supported. + * its prefix. An error value is returned if the given prefix isn't supported. * * @return On success an @ref E_SQFS_XATTR_TYPE, -1 if it isn't supported. */ SQFS_API int sqfs_get_xattr_prefix_id(const char *key); -/** - * @brief Check if a given xattr key can actually be encoded in SquashFS - * - * Like many file systems, SquashFS stores xattrs be cutting off the common - * prefix of the key string and storing an enumerator instead to save memory. - * - * However, this means if new prefixes are introduced, they are not immediately - * supported since SquashFS may not have an enumerator defined for them. - * - * This function checks if the @ref sqfs_get_xattr_prefix_id function can - * translate the prefix of the given key into a coresponding enumerator. - * - * If it returns false, this means either that SquashFS doesn't support this - * prefix, or it has recently been added but the version of libsquashfs you - * are using doesn't support it. - */ -SQFS_API bool sqfs_has_xattr(const char *key); - #ifdef __cplusplus } #endif |