diff --git a/src/openrct2/core/String.cpp b/src/openrct2/core/String.cpp index 907623b806..ccdd7d0fbf 100644 --- a/src/openrct2/core/String.cpp +++ b/src/openrct2/core/String.cpp @@ -403,23 +403,6 @@ namespace String return buffer; } - utf8* Duplicate(const std::string& src) - { - return String::Duplicate(src.c_str()); - } - - utf8* Duplicate(const utf8* src) - { - utf8* result = nullptr; - if (src != nullptr) - { - size_t srcSize = SizeOf(src) + 1; - result = Memory::Allocate(srcSize); - std::memcpy(result, src, srcSize); - } - return result; - } - std::vector Split(std::string_view s, std::string_view delimiter) { if (delimiter.empty()) diff --git a/src/openrct2/core/String.hpp b/src/openrct2/core/String.hpp index 14b2e20815..49389b0804 100644 --- a/src/openrct2/core/String.hpp +++ b/src/openrct2/core/String.hpp @@ -82,8 +82,6 @@ namespace String u8string StdFormat(const utf8* format, ...); u8string Format_VA(const utf8* format, va_list args); utf8* AppendFormat(utf8* buffer, size_t bufferSize, const utf8* format, ...); - utf8* Duplicate(const std::string& src); - utf8* Duplicate(const utf8* src); /** * Splits the given string by a delimiter and returns the values as a new string array.