mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-26 11:29:53 +03:00
src/Mayaqua/FileIO: remove unused function
found by cppcheck [src/Mayaqua/FileIO.c:2082]: (style) The function 'FileRename' is never used.
This commit is contained in:
parent
7f8e5b00dc
commit
3bb0e20add
@ -2079,17 +2079,6 @@ void NormalizePath(char *dst, UINT size, char *src)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Rename the file
|
// Rename the file
|
||||||
bool FileRename(char *old_name, char *new_name)
|
|
||||||
{
|
|
||||||
wchar_t *old_name_w = CopyStrToUni(old_name);
|
|
||||||
wchar_t *new_name_w = CopyStrToUni(new_name);
|
|
||||||
bool ret = FileRenameW(old_name_w, new_name_w);
|
|
||||||
|
|
||||||
Free(old_name_w);
|
|
||||||
Free(new_name_w);
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
bool FileRenameW(wchar_t *old_name, wchar_t *new_name)
|
bool FileRenameW(wchar_t *old_name, wchar_t *new_name)
|
||||||
{
|
{
|
||||||
wchar_t tmp1[MAX_SIZE];
|
wchar_t tmp1[MAX_SIZE];
|
||||||
|
@ -307,7 +307,6 @@ IO *FileOpenEx(char *name, bool write_mode, bool read_lock);
|
|||||||
IO *FileOpenExW(wchar_t *name, bool write_mode, bool read_lock);
|
IO *FileOpenExW(wchar_t *name, bool write_mode, bool read_lock);
|
||||||
void ConvertPathW(wchar_t *path);
|
void ConvertPathW(wchar_t *path);
|
||||||
bool FileRenameInnerW(wchar_t *old_name, wchar_t *new_name);
|
bool FileRenameInnerW(wchar_t *old_name, wchar_t *new_name);
|
||||||
bool FileRename(char *old_name, char *new_name);
|
|
||||||
bool FileRenameW(wchar_t *old_name, wchar_t *new_name);
|
bool FileRenameW(wchar_t *old_name, wchar_t *new_name);
|
||||||
void NormalizePath(char *dst, UINT size, char *src);
|
void NormalizePath(char *dst, UINT size, char *src);
|
||||||
void NormalizePathW(wchar_t *dst, UINT size, wchar_t *src);
|
void NormalizePathW(wchar_t *dst, UINT size, wchar_t *src);
|
||||||
|
Loading…
Reference in New Issue
Block a user