diff options
author | Pali Rohár <pali@kernel.org> | 2020-03-17 23:25:54 +0100 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-06-09 16:48:49 +0900 |
commit | 6778337a7a4e51ec9fa4a76846d34e8a66ca6418 (patch) | |
tree | 603f2aa5bccdc65fa19c6e32e878548a466b9cf4 /fs/exfat/nls.c | |
parent | dddf7da3985ee144b46ee287e81e47b9ee8bb980 (diff) | |
download | linux-6778337a7a4e51ec9fa4a76846d34e8a66ca6418.tar.bz2 |
exfat: Remove unused functions exfat_high_surrogate() and exfat_low_surrogate()
After applying previous two patches, these functions are not used anymore.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs/exfat/nls.c')
-rw-r--r-- | fs/exfat/nls.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/exfat/nls.c b/fs/exfat/nls.c index 2178786b708b..1ebda90cbdd7 100644 --- a/fs/exfat/nls.c +++ b/fs/exfat/nls.c @@ -535,22 +535,9 @@ static int exfat_utf8_to_utf16(struct super_block *sb, return unilen; } -#define PLANE_SIZE 0x00010000 #define SURROGATE_MASK 0xfffff800 #define SURROGATE_PAIR 0x0000d800 #define SURROGATE_LOW 0x00000400 -#define SURROGATE_BITS 0x000003ff - -unsigned short exfat_high_surrogate(unicode_t u) -{ - return ((u - PLANE_SIZE) >> 10) + SURROGATE_PAIR; -} - -unsigned short exfat_low_surrogate(unicode_t u) -{ - return ((u - PLANE_SIZE) & SURROGATE_BITS) | SURROGATE_PAIR | - SURROGATE_LOW; -} static int __exfat_utf16_to_nls(struct super_block *sb, struct exfat_uni_name *p_uniname, unsigned char *p_cstring, |