Remove unused function

Last call was removed in 66a6aa95f6
This commit is contained in:
Michał Janiszewski 2018-06-02 21:53:20 +02:00
parent 35242f4815
commit f0525d23ae
1 changed files with 0 additions and 23 deletions

View File

@ -374,29 +374,6 @@ bool platform_file_delete(const utf8 *path)
return ret == 0;
}
static wchar_t *regular_to_wchar(const char* src)
{
sint32 len = strnlen(src, MAX_PATH);
wchar_t * w_buffer = (wchar_t *)malloc((len + 1) * sizeof(wchar_t));
mbtowc (NULL, NULL, 0); /* reset mbtowc */
sint32 max = len;
sint32 i = 0;
while (max > 0)
{
sint32 length;
length = mbtowc(&w_buffer[i], &src[i], max);
if (length < 1)
{
w_buffer[i + 1] = '\0';
break;
}
i += length;
max -= length;
}
return w_buffer;
}
time_t platform_file_get_modified_time(const utf8* path){
struct stat buf;
if (stat(path, &buf) == 0) {