1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +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())

View File

@@ -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.