From c8d234ddcf42f4a2d3e30122877d792fabd92f68 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 24 Nov 2019 15:59:54 +0100 Subject: Cleanup: remove the entirely redundant sqfs_has_xattr function Signed-off-by: David Oberhollenzer --- include/sqfs/xattr.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'include/sqfs') 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 -- cgit v1.2.3