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:
@@ -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())
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user