mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove unused functions
This commit is contained in:
parent
a7ef031430
commit
a0bc5d9f3f
|
@ -420,18 +420,6 @@ namespace String
|
|||
return result;
|
||||
}
|
||||
|
||||
utf8* DiscardUse(utf8** ptr, utf8* replacement)
|
||||
{
|
||||
Memory::Free(*ptr);
|
||||
*ptr = replacement;
|
||||
return replacement;
|
||||
}
|
||||
|
||||
utf8* DiscardDuplicate(utf8** ptr, const utf8* replacement)
|
||||
{
|
||||
return DiscardUse(ptr, String::Duplicate(replacement));
|
||||
}
|
||||
|
||||
std::vector<std::string> Split(std::string_view s, std::string_view delimiter)
|
||||
{
|
||||
if (delimiter.empty())
|
||||
|
|
|
@ -85,16 +85,6 @@ namespace String
|
|||
utf8* Duplicate(const std::string& src);
|
||||
utf8* Duplicate(const utf8* src);
|
||||
|
||||
/**
|
||||
* Helper method to free the string a string pointer points to and set it to a replacement string.
|
||||
*/
|
||||
utf8* DiscardUse(utf8** ptr, utf8* replacement);
|
||||
|
||||
/**
|
||||
* Helper method to free the string a string pointer points to and set it to a copy of a replacement string.
|
||||
*/
|
||||
utf8* DiscardDuplicate(utf8** ptr, const utf8* replacement);
|
||||
|
||||
/**
|
||||
* Splits the given string by a delimiter and returns the values as a new string array.
|
||||
* @returns the number of values.
|
||||
|
|
Loading…
Reference in New Issue