Skip to content

Commit 6778337

Browse files
palinamjaejeon
authored andcommitted
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 <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
1 parent dddf7da commit 6778337

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

fs/exfat/exfat_fs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,6 @@ int exfat_nls_to_utf16(struct super_block *sb,
492492
struct exfat_uni_name *uniname, int *p_lossy);
493493
int exfat_create_upcase_table(struct super_block *sb);
494494
void exfat_free_upcase_table(struct exfat_sb_info *sbi);
495-
unsigned short exfat_high_surrogate(unicode_t u);
496-
unsigned short exfat_low_surrogate(unicode_t u);
497495

498496
/* exfat/misc.c */
499497
void __exfat_fs_error(struct super_block *sb, int report, const char *fmt, ...)

fs/exfat/nls.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -535,22 +535,9 @@ static int exfat_utf8_to_utf16(struct super_block *sb,
535535
return unilen;
536536
}
537537

538-
#define PLANE_SIZE 0x00010000
539538
#define SURROGATE_MASK 0xfffff800
540539
#define SURROGATE_PAIR 0x0000d800
541540
#define SURROGATE_LOW 0x00000400
542-
#define SURROGATE_BITS 0x000003ff
543-
544-
unsigned short exfat_high_surrogate(unicode_t u)
545-
{
546-
return ((u - PLANE_SIZE) >> 10) + SURROGATE_PAIR;
547-
}
548-
549-
unsigned short exfat_low_surrogate(unicode_t u)
550-
{
551-
return ((u - PLANE_SIZE) & SURROGATE_BITS) | SURROGATE_PAIR |
552-
SURROGATE_LOW;
553-
}
554541

555542
static int __exfat_utf16_to_nls(struct super_block *sb,
556543
struct exfat_uni_name *p_uniname, unsigned char *p_cstring,

0 commit comments

Comments
 (0)