diff --git a/src/openrct2/core/File.cpp b/src/openrct2/core/File.cpp index 814e5072ea..1ee75bc1b8 100644 --- a/src/openrct2/core/File.cpp +++ b/src/openrct2/core/File.cpp @@ -143,16 +143,3 @@ namespace File return Platform::GetFileSize(path); } } // namespace File - -bool writeentirefile(const utf8* path, const void* buffer, size_t length) -{ - try - { - File::WriteAllBytes(String::ToStd(path), buffer, length); - return true; - } - catch (const std::exception&) - { - return false; - } -} diff --git a/src/openrct2/util/Util.h b/src/openrct2/util/Util.h index 3f26c22a21..95dfc282df 100644 --- a/src/openrct2/util/Util.h +++ b/src/openrct2/util/Util.h @@ -31,7 +31,6 @@ void path_set_extension(utf8* path, const utf8* newExtension, size_t size); void path_append_extension(utf8* path, const utf8* newExtension, size_t size); void path_remove_extension(utf8* path); void path_end_with_separator(utf8* path, size_t size); -bool writeentirefile(const utf8* path, const void* buffer, size_t length); bool sse41_available(); bool avx2_available();