1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Remove unused String::Duplicate

This commit is contained in:
ζeh Matt
2023-02-16 21:59:08 +02:00
parent b465b9d6e5
commit 1f03bc89d7
2 changed files with 0 additions and 19 deletions

View File

@@ -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<utf8>(srcSize);
std::memcpy(result, src, srcSize);
}
return result;
}
std::vector<std::string> Split(std::string_view s, std::string_view delimiter)
{
if (delimiter.empty())