diff --git a/src/openrct2/platform/Posix.cpp b/src/openrct2/platform/Posix.cpp index 282f0d2c79..d266db5350 100644 --- a/src/openrct2/platform/Posix.cpp +++ b/src/openrct2/platform/Posix.cpp @@ -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) {