ntfs_file_value_upcase() is not called from anywhere in NTFS-3G, seems unlikely to be used by third-party programs, and can be replaced with calling ntfs_name_upcase() directly. So remove it.
Signed-off-by: Eric Biggers <ebigge...@gmail.com> --- include/ntfs-3g/unistr.h | 3 --- libntfs-3g/unistr.c | 17 ----------------- 2 files changed, 20 deletions(-) diff --git a/include/ntfs-3g/unistr.h b/include/ntfs-3g/unistr.h index b6d428e..7ea0038 100644 --- a/include/ntfs-3g/unistr.h +++ b/include/ntfs-3g/unistr.h @@ -50,9 +50,6 @@ extern void ntfs_name_upcase(ntfschar *name, u32 name_len, extern void ntfs_name_locase(ntfschar *name, u32 name_len, const ntfschar *locase, const u32 locase_len); -extern void ntfs_file_value_upcase(FILE_NAME_ATTR *file_name_attr, - const ntfschar *upcase, const u32 upcase_len); - extern int ntfs_ucstombs(const ntfschar *ins, const int ins_len, char **outs, int outs_len); extern int ntfs_mbstoucs(const char *ins, ntfschar **outs); diff --git a/libntfs-3g/unistr.c b/libntfs-3g/unistr.c index e70e316..199aeba 100644 --- a/libntfs-3g/unistr.c +++ b/libntfs-3g/unistr.c @@ -416,23 +416,6 @@ void ntfs_name_locase(ntfschar *name, u32 name_len, const ntfschar *locase, name[i] = locase[u]; } -/** - * ntfs_file_value_upcase - Convert a filename to upper case - * @file_name_attr: - * @upcase: - * @upcase_len: - * - * Description... - * - * Returns: - */ -void ntfs_file_value_upcase(FILE_NAME_ATTR *file_name_attr, - const ntfschar *upcase, const u32 upcase_len) -{ - ntfs_name_upcase((ntfschar*)&file_name_attr->file_name, - file_name_attr->file_name_length, upcase, upcase_len); -} - /* NTFS uses Unicode (UTF-16LE [NTFS-3G uses UCS-2LE, which is enough for now]) for path names, but the Unicode code points need to be -- 2.9.3 ------------------------------------------------------------------------------ _______________________________________________ ntfs-3g-devel mailing list ntfs-3g-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel